aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-01-28 21:06:34 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-01-28 21:06:34 +0000
commit5162249f252036c9a01848bc2853adac71539bf3 (patch)
tree3d88ecbe45d78d025453fe8ec2536f034fb03956 /src
parent555464d3c93cccdc2ad7e4f1c603940fd0d57631 (diff)
downloadsimplepkg-5162249f252036c9a01848bc2853adac71539bf3.tar.gz
simplepkg-5162249f252036c9a01848bc2853adac71539bf3.tar.bz2
simplepkg 0.4.9pre14
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@131 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'src')
-rwxr-xr-xsrc/simplaret7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/simplaret b/src/simplaret
index 01fed4f..b58e41b 100755
--- a/src/simplaret
+++ b/src/simplaret
@@ -636,12 +636,14 @@ function simplaret_get_jail_patches {
function simplaret_get_patches {
- local jailpath
+ local jailpath oldroot
if [ "$1" == "--upgrade" ]; then
IS_UPGRADE="1"
fi
+ oldroot="$ROOT"
+
# first get patches from the root system
simplaret_get_jail_patches
@@ -649,11 +651,14 @@ function simplaret_get_patches {
if [ -s "$JAIL_LIST" ]; then
for jailpath in `cat $JAIL_LIST`; do
if [ -d "$jailpath/var/log/packages" ]; then
+ ROOT="$jailpath"
simplaret_get_jail_patches $jailpath
fi
done
fi
+ ROOT="$oldroot"
+
}
function simplaret_checksum {