From: rhatto Date: Fri, 6 Apr 2007 02:49:29 +0000 (+0000) Subject: lspkg: small fix X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=f2e787d1b2ae12da9d3de564b62c8d6d9d1a0677;p=simplepkg.git lspkg: small fix git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@283 04377dda-e619-0410-9926-eae83683ac58 --- 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