summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-07-05 20:03:35 +0000
committerZac Medico <zmedico@gentoo.org>2006-07-05 20:03:35 +0000
commit7d020ab97b621d1df1223c1308ca68007296bfed (patch)
treeea2abd4166a1e8333f273f49b98f745bce2b3756
parentcd7334c158763b53c113534d840bd1918944a7cc (diff)
downloadportage-7d020ab97b621d1df1223c1308ca68007296bfed.tar.gz
portage-7d020ab97b621d1df1223c1308ca68007296bfed.tar.bz2
portage-7d020ab97b621d1df1223c1308ca68007296bfed.zip
Make a backup of ACCEPT_KEYWORDS when repoman changes it for each profile. This prevents it from being discarded by config.reset() and was the root cause of bug #132601. The cloning that was added in r3791 is a safeguard to prevent problems like this.
svn path=/main/trunk/; revision=3792
-rwxr-xr-xbin/repoman2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/repoman b/bin/repoman
index 6df7e97ef..6bab8400e 100755
--- a/bin/repoman
+++ b/bin/repoman
@@ -1149,6 +1149,8 @@ for x in scanlist:
portage.db["/"]["porttree"].settings = dep_settings
portage.db["/"]["porttree"].dbapi.mysettings = dep_settings
dep_settings["ACCEPT_KEYWORDS"] = " ".join(groups)
+ # just in case, prevent config.reset() from nuking these.
+ dep_settings.backup_changes("ACCEPT_KEYWORDS")
for myprovide in myaux["PROVIDE"].split():
prov_cp = portage.dep_getkey(myprovide)