From 5162249f252036c9a01848bc2853adac71539bf3 Mon Sep 17 00:00:00 2001 From: rhatto Date: Sun, 28 Jan 2007 21:06:34 +0000 Subject: simplepkg 0.4.9pre14 git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@131 04377dda-e619-0410-9926-eae83683ac58 --- src/simplaret | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') 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 { -- cgit v1.2.3