summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-10-02 17:09:44 -0700
committerZac Medico <zmedico@gentoo.org>2010-10-02 17:09:44 -0700
commitaddfbaa92f48f78d19393c880082c1b617cea9e3 (patch)
treed38441fb869038a8ca79ce98cabcd9299771ba64
parenteab9452336f79c5d9547fc37fa392d6f7ebe2366 (diff)
downloadportage-addfbaa92f48f78d19393c880082c1b617cea9e3.tar.gz
portage-addfbaa92f48f78d19393c880082c1b617cea9e3.tar.bz2
portage-addfbaa92f48f78d19393c880082c1b617cea9e3.zip
Don't call metadata.get() if metadata is None.
-rw-r--r--pym/portage/package/ebuild/getmaskingreason.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/package/ebuild/getmaskingreason.py b/pym/portage/package/ebuild/getmaskingreason.py
index 000bb406c..62a1f29a2 100644
--- a/pym/portage/package/ebuild/getmaskingreason.py
+++ b/pym/portage/package/ebuild/getmaskingreason.py
@@ -22,7 +22,7 @@ def getmaskingreason(mycpv, metadata=None, settings=None, portdb=None, return_lo
if metadata is None:
db_keys = list(portdb._aux_cache_keys)
try:
- metadata = dict(zip(db_keys, portdb.aux_get(mycpv, db_keys, myrepo=metadata.get('repository'))))
+ metadata = dict(zip(db_keys, portdb.aux_get(mycpv, db_keys)))
except KeyError:
if not portdb.cpv_exists(mycpv):
raise