aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtrunk/src/lspkg6
1 files changed, 6 insertions, 0 deletions
diff --git a/trunk/src/lspkg b/trunk/src/lspkg
index 2a6753b..52b808a 100755
--- a/trunk/src/lspkg
+++ b/trunk/src/lspkg
@@ -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