aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2006-12-10 23:06:01 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2006-12-10 23:06:01 +0000
commitc1b2b78d055175ed9ffae29669ed001ddc2a1e8a (patch)
tree1390f4cca45435ddb84769e00e84b2d0b112bc54 /src
parent7a5f5b49aaa035fec6fba47030f48cebda934856 (diff)
downloadsimplepkg-c1b2b78d055175ed9ffae29669ed001ddc2a1e8a.tar.gz
simplepkg-c1b2b78d055175ed9ffae29669ed001ddc2a1e8a.tar.bz2
common.sh: install_packages fix
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@70 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'src')
-rwxr-xr-xsrc/simplaret11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/simplaret b/src/simplaret
index ae738f2..4ab5772 100755
--- a/src/simplaret
+++ b/src/simplaret
@@ -464,7 +464,7 @@ function simplaret_search_and_download_patch {
# if the package is installed, download the patch
if [[ "$package_installed" != "1" ]]; then
- # TODO: verificar se eh a mesma versao e build number?
+ # TODO: verificar se eh a mesma versao e build number que esta instalada?
# DOWNLOAD_EVEN_IF_APPLIED?
simplaret_get $candidate
DOWNLOADED_PATCHES="$DOWNLOADED_PATCHES $candidate " # the ending space is important
@@ -482,7 +482,12 @@ function simplaret_get_jail_patches {
# usage: simplaret_get_jail_patches <jail-folder>
local oldarch oldversion
- root="$1"
+
+ if [ ! -z "$1" ]; then
+ root="$1"
+ else
+ root="/"
+ fi
# save current arch and version
oldarch="$ARCH"
@@ -529,7 +534,7 @@ function simplaret_get_patches {
local jailpath
# first get patches from the root system
- simplaret_get_jail_patches /
+ simplaret_get_jail_patches
# then get the needed patches for each installed jail
if [ -s "$JAIL_LIST" ]; then