summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-08-27 23:51:41 -0700
committerZac Medico <zmedico@gentoo.org>2010-08-27 23:51:41 -0700
commit297225486d6887a03f9c4ae7a3105afe3ba0711e (patch)
tree449e5122e645b40b159449d971980be7e63efe4d
parentbe0a2cb03d5017da1bfa085b89347608988ccdf1 (diff)
downloadportage-297225486d6887a03f9c4ae7a3105afe3ba0711e.tar.gz
portage-297225486d6887a03f9c4ae7a3105afe3ba0711e.tar.bz2
portage-297225486d6887a03f9c4ae7a3105afe3ba0711e.zip
Bug #334935 - Fix broken reference to config.pmaskdict insidev2.2_rc71
getmaskingreason().
-rw-r--r--pym/portage/package/ebuild/getmaskingreason.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/pym/portage/package/ebuild/getmaskingreason.py b/pym/portage/package/ebuild/getmaskingreason.py
index a8a9626f2..3511c0dcb 100644
--- a/pym/portage/package/ebuild/getmaskingreason.py
+++ b/pym/portage/package/ebuild/getmaskingreason.py
@@ -45,8 +45,9 @@ def getmaskingreason(mycpv, metadata=None, settings=None, portdb=None, return_lo
locations.reverse()
pmasklists = [(x, grablines(os.path.join(x, "package.mask"), recursive=1)) for x in locations]
- if mycp in settings.pmaskdict:
- for x in settings.pmaskdict[mycp]:
+ pmaskdict = settings._mask_manager._pmaskdict
+ if mycp in pmaskdict:
+ for x in pmaskdict[mycp]:
if match_from_list(x, cpv_slot_list):
for pmask in pmasklists:
comment = ""