projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af68b3c
)
Fix types.InstanceType test which is failing now for some reason. (trunk r6136:6137)
author
Zac Medico
<zmedico@gentoo.org>
Sat, 3 Mar 2007 08:32:20 +0000
(08:32 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Sat, 3 Mar 2007 08:32:20 +0000
(08:32 -0000)
svn path=/main/branches/2.1.2/; revision=6140
pym/portage.py
patch
|
blob
|
history
diff --git
a/pym/portage.py
b/pym/portage.py
index 51dc4fd440991609c479a8561e20dd2f445d6f79..e340754376c92a1144b6dd96328d11e6866caa86 100644
(file)
--- a/
pym/portage.py
+++ b/
pym/portage.py
@@
-4450,7
+4450,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[:]