diff options
author | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2007-04-06 02:47:03 +0000 |
---|---|---|
committer | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2007-04-06 02:47:03 +0000 |
commit | 3ccca95dce279f13bf69b18a980634996a8b73fc (patch) | |
tree | e0e9df0b6f6e3d6a15e39ab52a31d74b372c7405 | |
parent | 75dc11cf437c7cbe8703482f264bd2848c68ecb8 (diff) | |
download | simplepkg-3ccca95dce279f13bf69b18a980634996a8b73fc.tar.gz simplepkg-3ccca95dce279f13bf69b18a980634996a8b73fc.tar.bz2 |
lspkg: small fix
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@282 04377dda-e619-0410-9926-eae83683ac58
-rwxr-xr-x | trunk/src/lspkg | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/trunk/src/lspkg b/trunk/src/lspkg index 224d099..2a6753b 100755 --- a/trunk/src/lspkg +++ b/trunk/src/lspkg @@ -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 |