Bug #334935 - Fix broken reference to config.pmaskdict inside v2.2_rc71
authorZac Medico <zmedico@gentoo.org>
Sat, 28 Aug 2010 06:51:41 +0000 (23:51 -0700)
committerZac Medico <zmedico@gentoo.org>
Sat, 28 Aug 2010 06:51:41 +0000 (23:51 -0700)
getmaskingreason().

pym/portage/package/ebuild/getmaskingreason.py

index a8a9626f28c820b7599fb87b011cf80f0ea480c9..3511c0dcb13a845ff6dde2419c3967ba037b6597 100644 (file)
@@ -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 = ""