diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-10-02 17:09:44 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-10-02 17:09:44 -0700 |
commit | addfbaa92f48f78d19393c880082c1b617cea9e3 (patch) | |
tree | d38441fb869038a8ca79ce98cabcd9299771ba64 | |
parent | eab9452336f79c5d9547fc37fa392d6f7ebe2366 (diff) | |
download | portage-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.py | 2 |
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 |