aboutsummaryrefslogtreecommitdiff
path: root/trunk/src/lspkg
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/src/lspkg')
-rwxr-xr-xtrunk/src/lspkg15
1 files changed, 8 insertions, 7 deletions
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
;;