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

trunk/src/lspkg

index 2a6753b69e2351750e46e110ae7164a54d7877fc..52b808a1618d83aefb1d414bca8726f0ba287cf5 100755 (executable)
@@ -47,8 +47,14 @@ fi
 
 if [ $# -eq 2 ]; then
     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`
+    fi
 elif [ $# -eq 1 ]; then
     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`
+    fi
 else
     LIST_PKGS=`ls /$ROOT/var/log/packages/ 2> /dev/null`
 fi