Don't call metadata.get() if metadata is None.
authorZac Medico <zmedico@gentoo.org>
Sun, 3 Oct 2010 00:09:44 +0000 (17:09 -0700)
committerZac Medico <zmedico@gentoo.org>
Sun, 3 Oct 2010 00:09:44 +0000 (17:09 -0700)
pym/portage/package/ebuild/getmaskingreason.py

index 000bb406ceaf55c309657254f6bdab811e3e900e..62a1f29a2157c6596458fc3c116584c631992a1d 100644 (file)
@@ -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