From: Jason Stubbs Date: Sun, 25 Dec 2005 10:37:56 +0000 (-0000) Subject: Allow overlays and the user profile to extend arch.list. X-Git-Tag: v2.1_pre3~36 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4a666b4e9bf3978ddcf64efe6f0829bfb276bf24;p=portage.git Allow overlays and the user profile to extend arch.list. svn path=/main/trunk/; revision=2468 --- diff --git a/pym/portage.py b/pym/portage.py index 57e266f29..24d1ded55 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -1101,9 +1101,6 @@ class config: self.lookuplist=self.configlist[:] self.lookuplist.reverse() - archlist = grabfile(self["PORTDIR"]+"/profiles/arch.list") - self.configdict["conf"]["PORTAGE_ARCHLIST"] = string.join(archlist) - if os.environ.get("PORTAGE_CALLER","") == "repoman": # repoman shouldn't use local settings. locations = [self["PORTDIR"] + "/profiles"] @@ -1160,6 +1157,10 @@ class config: self.categories = stack_lists(categories, incremental=1) del categories + archlist = grab_multiple("arch.list", locations, grabfile) + archlist = stack_lists(archlist, incremental=1) + self.configdict["conf"]["PORTAGE_ARCHLIST"] = " ".join(archlist) + # get virtuals -- needs categories self.loadVirtuals('/') @@ -6903,10 +6904,9 @@ if not os.path.isdir(settings["PORTAGE_TMPDIR"]): # COMPATABILITY -- This shouldn't be used. pkglines = settings.packages -groups=settings["ACCEPT_KEYWORDS"].split() -archlist=[] -for myarch in grabfile(settings["PORTDIR"]+"/profiles/arch.list"): - archlist += [myarch,"~"+myarch] +groups = settings["ACCEPT_KEYWORDS"].split() +archlist = flatten([[myarch, "~"+myarch] for myarch in settings["PORTAGE_ARCHLIST"].split()]) + for group in groups: if not archlist: writemsg("--- 'profiles/arch.list' is empty or not available. Empty portage tree?\n")