projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
31a1f58
)
Test for existence of the getRepositories method since bindbapi doesn't have it atm.
author
Zac Medico
<zmedico@gentoo.org>
Fri, 29 Jun 2007 21:30:10 +0000
(21:30 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Fri, 29 Jun 2007 21:30:10 +0000
(21:30 -0000)
svn path=/main/trunk/; revision=7093
pym/portage/dbapi/vartree.py
patch
|
blob
|
history
diff --git
a/pym/portage/dbapi/vartree.py
b/pym/portage/dbapi/vartree.py
index 7bc2c686ede22d8d119a98a987b7826efd56b95f..64fafbb57abddf6dcfd814569385431158750d1c 100644
(file)
--- a/
pym/portage/dbapi/vartree.py
+++ b/
pym/portage/dbapi/vartree.py
@@
-1701,7
+1701,8
@@
class dblink(object):
# do we have a origin repository name for the current package
repopath = os.sep.join(self.settings["O"].split(os.sep)[:-2])
- if mydbapi != None:
+ # bindbapi has no getRepositories() method
+ if mydbapi and hasattr(mydbapi, "getRepositories"):
for reponame in mydbapi.getRepositories():
if mydbapi.getRepositoryPath(reponame) == repopath:
fd = open(os.path.join(self.dbtmpdir, "repository"), "w")