From 99aaee85c645c498a80c811b7e36b53d9f481022 Mon Sep 17 00:00:00 2001 From: rhatto Date: Wed, 10 Jan 2007 16:59:46 +0000 Subject: simplaret small fix git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@87 04377dda-e619-0410-9926-eae83683ac58 --- src/simplaret | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/simplaret b/src/simplaret index 189d467..f0d3ae6 100755 --- a/src/simplaret +++ b/src/simplaret @@ -597,16 +597,13 @@ function simplaret_install { local package root - if [ ! -x "$ROOT" ]; then - root="ROOT=/$ROOT" - else root="" - fi + root="/$ROOT" package="`simplaret_get $1 --silent`" if [ "$?" == "0" ]; then if [ -f "$package" ]; then - $root upgradepkg --install-new $package + ROOT=$root upgradepkg --install-new $package else echo "error: could not install package $package: file not found" fi -- cgit v1.2.3