Make a backup of ACCEPT_KEYWORDS when repoman changes it for each profile. This...
authorZac Medico <zmedico@gentoo.org>
Wed, 5 Jul 2006 20:03:35 +0000 (20:03 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 5 Jul 2006 20:03:35 +0000 (20:03 -0000)
svn path=/main/trunk/; revision=3792

bin/repoman

index 6df7e97ef740586df968887a6dd0a51eef94d1ec..6bab8400ef972897eda14337294da3703d6d368e 100755 (executable)
@@ -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)