aboutsummaryrefslogtreecommitdiff
path: root/trunk/src/lspkg
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-04-08 00:03:16 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-04-08 00:03:16 +0000
commit33a8a56106adae25714eec24d1bcb4889fcf8267 (patch)
tree2b0e1cf7840f2c7514beeb6f4452acbe9fd44c24 /trunk/src/lspkg
parent6878c9fdb73390836232b93ab42b50e59d742716 (diff)
downloadsimplepkg-33a8a56106adae25714eec24d1bcb4889fcf8267.tar.gz
simplepkg-33a8a56106adae25714eec24d1bcb4889fcf8267.tar.bz2
simplaret: fix, see doc/CHANGELOG
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@319 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'trunk/src/lspkg')
-rwxr-xr-xtrunk/src/lspkg15
1 files changed, 8 insertions, 7 deletions
diff --git a/trunk/src/lspkg b/trunk/src/lspkg
index 74ed684..c60de49 100755
--- a/trunk/src/lspkg
+++ b/trunk/src/lspkg
@@ -16,6 +16,7 @@
# this program; if not, write to the Free Software Foundation, Inc., 59 Temple
# Place - Suite 330, Boston, MA 02111-1307, USA
#
+
function head_line {
echo "usage: [ROOT=/otherroot] `basename $0` [option expression]"
}
@@ -46,17 +47,17 @@ else
fi
if [ $# -eq 2 ]; then
- LIST_PKGS=`ls /$ROOT/var/log/packages/$2-[0-9]* 2> /dev/null`
+ 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`
+ 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`
+ 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`
+ LIST_PKGS="`ls /$ROOT/var/log/packages/$1* 2> /dev/null`"
fi
else
- LIST_PKGS=`ls /$ROOT/var/log/packages/ 2> /dev/null`
+ LIST_PKGS="`ls /$ROOT/var/log/packages/ 2> /dev/null`"
fi
LIST_PKGS="`slash $LIST_PKGS`"
@@ -118,9 +119,9 @@ case $1 in
echo "$LIST_PKGS"
else
if [ ! -z "$ROOT" ]; then
- echo "$2: package not found on /$ROOT/var/log/packages"
+ echo "$1: package not found on /$ROOT/var/log/packages"
else
- echo "$2: package not found on /var/log/packages"
+ echo "$1: package not found on /var/log/packages"
fi
fi
;;