config/p.mask: config from other repos than PORTDIR comes before profiles (like PORTDIR)
authorSebastian Luther <SebastianLuther@gmx.de>
Fri, 10 Sep 2010 20:19:02 +0000 (22:19 +0200)
committerZac Medico <zmedico@gentoo.org>
Fri, 10 Sep 2010 20:39:54 +0000 (13:39 -0700)
pym/portage/package/ebuild/_config/LocationsManager.py

index 88f500bd39fd0c0629a6c4707135a9c44724eebf..83d61050f36172ed480ac29b4b48becaddf02c8f 100644 (file)
@@ -177,7 +177,7 @@ class LocationsManager(object):
                self.profile_locations = tuple(self.profile_locations)
                self.profile_and_user_locations = tuple(self.profile_and_user_locations)
 
-               self.pmask_locations = [os.path.join(portdir, "profiles")]
-               self.pmask_locations.extend(self.profiles)
-               self.pmask_locations.extend(self.overlay_profiles)
-               self.pmask_locations = tuple(self.pmask_locations)
+               self.pmask_locations = (
+                       tuple([os.path.join(portdir, "profiles")] + self.overlay_profiles),
+                       tuple(self.profiles),
+               )