From: "Jorge Manuel B. S. Vicetto (jmbsvicetto)" <[email protected]>

---
 targets/stage1/stage1-chroot.sh     | 5 ++++-
 targets/support/chroot-functions.sh | 2 +-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/targets/stage1/stage1-chroot.sh b/targets/stage1/stage1-chroot.sh
index 3f628c2..ed83f38 100644
--- a/targets/stage1/stage1-chroot.sh
+++ b/targets/stage1/stage1-chroot.sh
@@ -30,12 +30,15 @@ if [ -n "${clst_update_seed}" ]; then
                if [ -n "${clst_update_seed_command}" ]; then
                        clst_root_path=/ run_merge "--buildpkg=n 
${clst_update_seed_command}"
                else
-                       clst_root_path=/ run_merge "--buildpkg=n --update 
--deep --newuse --onlydeps gcc"
+                       clst_root_path=/ run_merge "--update --deep --newuse 
--complete-graph --rebuild-if-new-ver gcc"
                fi
        elif [ "${clst_update_seed}" != "no" ]; then
                echo "Invalid setting for update_seed: ${clst_update_seed}"
                exit 1
        fi
+
+       # reset emerge options for the target
+       clst_update_seed=no setup_myemergeopts
 else
        echo "Skipping seed stage update..."
 fi
diff --git a/targets/support/chroot-functions.sh 
b/targets/support/chroot-functions.sh
index 35ffbaa..0705b5b 100644
--- a/targets/support/chroot-functions.sh
+++ b/targets/support/chroot-functions.sh
@@ -133,7 +133,7 @@ setup_myemergeopts(){
        then
                export bootstrap_opts="${bootstrap_opts} -f"
                export clst_myemergeopts="${clst_myemergeopts} -f"
-       elif [ -n "${clst_PKGCACHE}" ]
+       elif [ -n "${clst_PKGCACHE}" -a -z "${clst_update_seed}" ]
        then
                export clst_myemergeopts="${clst_myemergeopts} --usepkg 
--buildpkg --newuse"
                export bootstrap_opts="${bootstrap_opts} -r"
-- 
1.8.1.5


Reply via email to