public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] portage r15309 - main/trunk/bin
@ 2010-01-31 22:53 Zac Medico (zmedico)
  0 siblings, 0 replies; only message in thread
From: Zac Medico (zmedico) @ 2010-01-31 22:53 UTC (permalink / raw
  To: gentoo-commits

Author: zmedico
Date: 2010-01-31 22:53:00 +0000 (Sun, 31 Jan 2010)
New Revision: 15309

Modified:
   main/trunk/bin/repoman
Log:
Clean up config incrementals handling.


Modified: main/trunk/bin/repoman
===================================================================
--- main/trunk/bin/repoman	2010-01-31 22:27:45 UTC (rev 15308)
+++ main/trunk/bin/repoman	2010-01-31 22:53:00 UTC (rev 15309)
@@ -91,8 +91,11 @@
 
 # A sane umask is needed for files that portage creates.
 os.umask(0o22)
-repoman_settings = portage.config(local_config=False,
-	config_incrementals=portage.const.INCREMENTALS)
+# Repoman sets it's own ACCEPT_KEYWORDS and we don't want it to
+# behave incrementally.
+repoman_incrementals = tuple(x for x in \
+	portage.const.INCREMENTALS if x != 'ACCEPT_KEYWORDS')
+repoman_settings = portage.config(local_config=False)
 repoman_settings.lock()
 
 if repoman_settings.get("NOCOLOR", "").lower() in ("yes", "true") or \
@@ -1749,16 +1752,12 @@
 				if dep_settings is None:
 					dep_settings = portage.config(
 						config_profile_path=prof.abs_path,
-						config_incrementals=portage.const.INCREMENTALS,
+						config_incrementals=repoman_incrementals,
 						local_config=False,
 						env=env)
 					if options.without_mask:
 						dep_settings.pmaskdict.clear()
 					arch_caches[prof.sub_path] = dep_settings
-					# Protect ACCEPT_KEYWORDS from config.regenerate()
-					# (just in case)
-					dep_settings.incrementals = tuple(v for v in \
-						dep_settings.incrementals if v != 'ACCEPT_KEYWORDS')
 
 				xmatch_cache_key = (prof.sub_path, tuple(groups))
 				xcache = arch_xmatch_caches.get(xmatch_cache_key)




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-01-31 22:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-31 22:53 [gentoo-commits] portage r15309 - main/trunk/bin Zac Medico (zmedico)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox