public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] portage r12515 - main/branches/2.1.6/pym/portage
@ 2009-01-14  7:48 Zac Medico (zmedico)
  0 siblings, 0 replies; only message in thread
From: Zac Medico (zmedico) @ 2009-01-14  7:48 UTC (permalink / raw
  To: gentoo-commits

Author: zmedico
Date: 2009-01-14 07:48:49 +0000 (Wed, 14 Jan 2009)
New Revision: 12515

Modified:
   main/branches/2.1.6/pym/portage/__init__.py
Log:
Fix repoman conditionals inside _expand_new_virtuals() to use
config.local_config instead of checking for portdbapi type. (trunk r12514)

Modified: main/branches/2.1.6/pym/portage/__init__.py
===================================================================
--- main/branches/2.1.6/pym/portage/__init__.py	2009-01-14 06:00:31 UTC (rev 12514)
+++ main/branches/2.1.6/pym/portage/__init__.py	2009-01-14 07:48:49 UTC (rev 12515)
@@ -6289,7 +6289,7 @@
 	# for new-style virtuals.  Repoman should enforce this.
 	dep_keys = ["RDEPEND", "DEPEND", "PDEPEND"]
 	portdb = trees[myroot]["porttree"].dbapi
-	repoman = isinstance(mydbapi, portdbapi)
+	repoman = not mysettings.local_config
 	if kwargs["use_binaries"]:
 		portdb = trees[myroot]["bintree"].dbapi
 	myvirtuals = mysettings.getvirtuals()
@@ -6371,8 +6371,7 @@
 			cpv, pv_split, db = y
 			depstring = " ".join(db.aux_get(cpv, dep_keys))
 			pkg_kwargs = kwargs.copy()
-			if isinstance(db, portdbapi):
-				# for repoman
+			if repoman:
 				pass
 			else:
 				# for emerge




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

only message in thread, other threads:[~2009-01-14  7:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-14  7:48 [gentoo-commits] portage r12515 - main/branches/2.1.6/pym/portage 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