From 33a8a56106adae25714eec24d1bcb4889fcf8267 Mon Sep 17 00:00:00 2001 From: rhatto Date: Sun, 8 Apr 2007 00:03:16 +0000 Subject: simplaret: fix, see doc/CHANGELOG git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@319 04377dda-e619-0410-9926-eae83683ac58 --- trunk/src/lspkg | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'trunk/src/lspkg') diff --git a/trunk/src/lspkg b/trunk/src/lspkg index 74ed684..c60de49 100755 --- a/trunk/src/lspkg +++ b/trunk/src/lspkg @@ -16,6 +16,7 @@ # this program; if not, write to the Free Software Foundation, Inc., 59 Temple # Place - Suite 330, Boston, MA 02111-1307, USA # + function head_line { echo "usage: [ROOT=/otherroot] `basename $0` [option expression]" } @@ -46,17 +47,17 @@ else fi if [ $# -eq 2 ]; then - LIST_PKGS=`ls /$ROOT/var/log/packages/$2-[0-9]* 2> /dev/null` + LIST_PKGS="`ls /$ROOT/var/log/packages/$2-[0-9]* 2> /dev/null`" if [ -z "$LIST_PKGS" ]; then - LIST_PKGS=`ls /$ROOT/var/log/packages/$2* 2> /dev/null` + LIST_PKGS="`ls /$ROOT/var/log/packages/$2* 2> /dev/null`" fi elif [ $# -eq 1 ]; then - LIST_PKGS=`ls /$ROOT/var/log/packages/$1-[0-9]* 2> /dev/null` + LIST_PKGS="`ls /$ROOT/var/log/packages/$1-[0-9]* 2> /dev/null`" if [ -z "$LIST_PKGS" ]; then - LIST_PKGS=`ls /$ROOT/var/log/packages/$1* 2> /dev/null` + LIST_PKGS="`ls /$ROOT/var/log/packages/$1* 2> /dev/null`" fi else - LIST_PKGS=`ls /$ROOT/var/log/packages/ 2> /dev/null` + LIST_PKGS="`ls /$ROOT/var/log/packages/ 2> /dev/null`" fi LIST_PKGS="`slash $LIST_PKGS`" @@ -118,9 +119,9 @@ case $1 in echo "$LIST_PKGS" else if [ ! -z "$ROOT" ]; then - echo "$2: package not found on /$ROOT/var/log/packages" + echo "$1: package not found on /$ROOT/var/log/packages" else - echo "$2: package not found on /var/log/packages" + echo "$1: package not found on /var/log/packages" fi fi ;; -- cgit v1.2.3