aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-01-23 19:43:32 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-01-23 19:43:32 +0000
commitfbac4831ed124fe7936322142993a20044847e8c (patch)
tree144f0c102b725a61f07d66864804be51cd07a9e3 /src
parent7dbd3fb0b83179f16cbec36fad340f450c1e0a79 (diff)
downloadsimplepkg-fbac4831ed124fe7936322142993a20044847e8c.tar.gz
simplepkg-fbac4831ed124fe7936322142993a20044847e8c.tar.bz2
small fixes
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@119 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'src')
-rwxr-xr-xsrc/simplaret6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/simplaret b/src/simplaret
index b8879eb..d4ccdb2 100755
--- a/src/simplaret
+++ b/src/simplaret
@@ -691,15 +691,15 @@ function simplaret_install {
package="`simplaret_get $1 --silent`"
- if [ "$?" == "0" ]; then
+ if [ "$?" == "0" ] && [ ! -z "$package" ]; then
if [ -f "$package" ]; then
ROOT=$root upgradepkg --install-new $package
else
- echo "error: could not install package $package: file not found"
+ echo "error: could not install package $1: file not found"
return 1
fi
else
- echo "error: could not install package $package"
+ echo "error: could not install package $1"
return 1
fi