MaskManager: Fix stacking of lines from master repositories.
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Gentoo.Org>
Sat, 8 Oct 2011 21:39:10 +0000 (23:39 +0200)
committerArfrever Frehtes Taifersar Arahesis <Arfrever@Gentoo.Org>
Sat, 8 Oct 2011 21:39:10 +0000 (23:39 +0200)
pym/portage/package/ebuild/_config/MaskManager.py

index df93e105d58c86aad0cf852452e43c0f9066e657..8bcaf7aa54c8ac4cf11c41009a70fa2c1c05d3bd 100644 (file)
@@ -43,11 +43,12 @@ class MaskManager(object):
                for repo in repositories.repos_with_profiles():
                        lines = []
                        repo_lines = grab_pmask(repo.location)
+                       master_lines = []
                        for master in repo.masters:
-                               master_lines = grab_pmask(master.location)
-                               lines.append(stack_lists([master_lines, repo_lines], incremental=1,
-                                       remember_source_file=True, warn_for_unmatched_removal=True,
-                                       strict_warn_for_unmatched_removal=strict_umatched_removal))
+                               master_lines.extend(grab_pmask(master.location))
+                       lines.append(stack_lists([master_lines, repo_lines], incremental=1,
+                               remember_source_file=True, warn_for_unmatched_removal=True,
+                               strict_warn_for_unmatched_removal=strict_umatched_removal))
                        if not repo.masters:
                                lines.append(stack_lists([repo_lines], incremental=1,
                                        remember_source_file=True, warn_for_unmatched_removal=True,