aboutsummaryrefslogtreecommitdiff
path: root/trunk
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-04-06 02:47:03 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-04-06 02:47:03 +0000
commit3ccca95dce279f13bf69b18a980634996a8b73fc (patch)
treee0e9df0b6f6e3d6a15e39ab52a31d74b372c7405 /trunk
parent75dc11cf437c7cbe8703482f264bd2848c68ecb8 (diff)
downloadsimplepkg-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
Diffstat (limited to 'trunk')
-rwxr-xr-xtrunk/src/lspkg4
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