summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-03-03 01:53:18 +0000
committerZac Medico <zmedico@gentoo.org>2007-03-03 01:53:18 +0000
commit68d46429aa4091671158538db40eeaa172c53db1 (patch)
tree9d0eba31b7114ae24d1953b3c3d942647e7537a7
parente1893483f748e25f0b1d8b9c7163f53b37d0fd53 (diff)
downloadportage-68d46429aa4091671158538db40eeaa172c53db1.tar.gz
portage-68d46429aa4091671158538db40eeaa172c53db1.tar.bz2
portage-68d46429aa4091671158538db40eeaa172c53db1.zip
Fix types.InstanceType test which is failing now for some reason.
svn path=/main/trunk/; revision=6137
-rw-r--r--pym/portage/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index 1b7cf94bf..f5e00b060 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -4358,7 +4358,7 @@ def cpv_expand(mycpv, mydb=None, use_cache=1, settings=None):
mykey=mycpv
if mydb and virts and mykey in virts:
writemsg("mydb.__class__: %s\n" % (mydb.__class__), 1)
- if type(mydb)==types.InstanceType:
+ if hasattr(mydb, "cp_list"):
if not mydb.cp_list(mykey, use_cache=use_cache):
writemsg("virts[%s]: %s\n" % (str(mykey),virts[mykey]), 1)
mykey_orig = mykey[:]