summaryrefslogtreecommitdiffstats
path: root/bin/emerge
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-05-01 07:29:28 +0000
committerZac Medico <zmedico@gentoo.org>2006-05-01 07:29:28 +0000
commita6245839492ccd1ac182d20f261e0e1d204ce357 (patch)
tree0889493bfaf252f2adb9288ce5628da110f37cb4 /bin/emerge
parent7af116e38e3800fd147eccf6f85436d78a7cc42c (diff)
downloadportage-a6245839492ccd1ac182d20f261e0e1d204ce357.tar.gz
portage-a6245839492ccd1ac182d20f261e0e1d204ce357.tar.bz2
portage-a6245839492ccd1ac182d20f261e0e1d204ce357.zip
Make sure that emerge really removes noauto from FEATURES for bug #131820.
svn path=/main/trunk/; revision=3292
Diffstat (limited to 'bin/emerge')
-rwxr-xr-xbin/emerge9
1 files changed, 7 insertions, 2 deletions
diff --git a/bin/emerge b/bin/emerge
index 87f287301..c74d949ff 100755
--- a/bin/emerge
+++ b/bin/emerge
@@ -168,8 +168,13 @@ if portage.settings.has_key("PORTAGE_NICENESS"):
portage.portdb.freeze()
# Kill noauto as it will break merges otherwise.
-while 'noauto' in portage.settings.features:
- portage.settings.features.remove('noauto')
+if "noauto" in portage.settings.features:
+ while "noauto" in portage.settings.features:
+ portage.settings.features.remove("noauto")
+ portage.settings.unlock()
+ portage.settings["FEATURES"] = " ".join(portage.settings.features)
+ portage.settings.backup_changes("FEATURES")
+ portage.settings.lock()
#number of ebuilds merged
merged=0