MaskManager: fix profiles location
authorFabian Groffen <grobian@gentoo.org>
Sat, 3 Dec 2011 19:04:20 +0000 (20:04 +0100)
committerFabian Groffen <grobian@gentoo.org>
Sat, 3 Dec 2011 19:04:20 +0000 (20:04 +0100)
Previous fix lacked the "profiles" directory added to each repo, causing
masks from the base of the repo not being seen.

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

index 814256ab749e18083a467f2a48703ffdbaa0329f..dfe41a1b2ff0cd8f5cc82b84dd4a623dc3483019 100644 (file)
@@ -128,7 +128,8 @@ class MaskManager(object):
                repo_pkgunmasklines = []
                all_profiles = []
                for repo in repositories.repos_with_profiles():
-                       all_profiles.append(_profile_node(repo.location, True))
+                       all_profiles.append(_profile_node(
+                               os.path.join(repo.location, "profiles"), True))
                all_profiles.extend(profiles)
                # END PREFIX LOCAL
                for x in all_profiles: