aboutsummaryrefslogtreecommitdiff
path: root/trunk/src/lspkg
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-04-06 02:49:29 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-04-06 02:49:29 +0000
commitf2e787d1b2ae12da9d3de564b62c8d6d9d1a0677 (patch)
tree14b315471aac0dd20e42bcf206fdd2175a3bfaa4 /trunk/src/lspkg
parent3ccca95dce279f13bf69b18a980634996a8b73fc (diff)
downloadsimplepkg-f2e787d1b2ae12da9d3de564b62c8d6d9d1a0677.tar.gz
simplepkg-f2e787d1b2ae12da9d3de564b62c8d6d9d1a0677.tar.bz2
lspkg: small fix
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@283 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'trunk/src/lspkg')
-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