Only run depclean for stage3/system
authorAndrew Gaffney <agaffney@gentoo.org>
Tue, 29 Dec 2009 17:49:21 +0000 (11:49 -0600)
committerAndrew Gaffney <agaffney@gentoo.org>
Tue, 29 Dec 2009 17:49:21 +0000 (11:49 -0600)
ChangeLog
targets/support/chroot-functions.sh

index 8693ed9ae2410ad414d6f3b0f1cc89bc288e2474..f8ff97532f23c516bcf3de259e78e8fa93f67ed9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,10 @@
 # Distributed under the GPL v2
 # $Id$
 
+  29 Dec 2009; Andrew Gaffney <agaffney@gentoo.org>
+  targets/support/chroot-functions.sh:
+  Only run depclean for stage3/system
+
   28 Dec 2009; Andrew Gaffney <agaffney@gentoo.org> catalyst:
   This is catalyst 2.0.6.906
 
index 1c227aa48f7b2b3ba862cf7e0891ea33ebc7d852..003e38c57ce81cbfe12e03c7e1392f6faa28f491 100644 (file)
@@ -200,20 +200,20 @@ cleanup_stages() {
                cleanup_icecream
        fi
        case ${clst_target} in
-               stage1|stage2|stage3)
-                       rm -f /var/lib/portage/world
-                       touch /var/lib/portage/world
+               stage3|system)
+                       run_merge --depclean --with-bdeps=n
                        ;;
                *)
-                       echo "Skipping removal of world file for ${clst_target}"
+                       echo "Skipping depclean operation for ${clst_target}"
                        ;;
        esac
        case ${clst_target} in
-               stage1|stage2|stage3|stage4|system)
-                       run_merge --depclean --with-bdeps=n
+               stage1|stage2|stage3|system)
+                       rm -f /var/lib/portage/world
+                       touch /var/lib/portage/world
                        ;;
                *)
-                       echo "Skipping depclean operation for ${clst_target}"
+                       echo "Skipping removal of world file for ${clst_target}"
                        ;;
        esac