diff options
-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 |