]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
lspkg: small fix
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Fri, 6 Apr 2007 02:47:03 +0000 (02:47 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Fri, 6 Apr 2007 02:47:03 +0000 (02:47 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@282 04377dda-e619-0410-9926-eae83683ac58

trunk/src/lspkg

index 224d0994b15b4f3c013e55b5d346d2d19a15847d..2a6753b69e2351750e46e110ae7164a54d7877fc 100755 (executable)
@@ -47,8 +47,10 @@ fi
 
 if [ $# -eq 2 ]; then
     LIST_PKGS=`ls /$ROOT/var/log/packages/$2-[0-9]* 2> /dev/null`
-else
+elif [ $# -eq 1 ]; then
     LIST_PKGS=`ls /$ROOT/var/log/packages/$1-[0-9]* 2> /dev/null`
+else
+    LIST_PKGS=`ls /$ROOT/var/log/packages/ 2> /dev/null`
 fi
 
 case $1 in