From addfbaa92f48f78d19393c880082c1b617cea9e3 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 2 Oct 2010 17:09:44 -0700 Subject: [PATCH] Don't call metadata.get() if metadata is None. --- pym/portage/package/ebuild/getmaskingreason.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.26.2