grab_pmask: use local repo_config reference
authorZac Medico <zmedico@gentoo.org>
Fri, 28 Oct 2011 01:45:19 +0000 (18:45 -0700)
committerZac Medico <zmedico@gentoo.org>
Fri, 28 Oct 2011 01:45:19 +0000 (18:45 -0700)
The previous code worked, but it looked wrong because it was using the
'repo' variable from the parent scope.

pym/portage/package/ebuild/_config/MaskManager.py

index 6b0f1c32a60b9683ca03119705fcc7c0db466c65..affa5af31d8afe10c166631b03357a114d4c65da 100644 (file)
@@ -46,7 +46,7 @@ class MaskManager(object):
                                                "in the future.  Please either convert the following paths "
                                                "to files, or add\nprofile-format = portage-1\nto the "
                                                "repositories layout.conf.\n")
-                                               % dict(repo_name=repo.name)),
+                                               % dict(repo_name=repo_config.name)),
                                                noiselevel=-1)
 
                        return pmask_cache[loc]