summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage.py26
1 files changed, 13 insertions, 13 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 9977cdfc6..43854226e 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -1200,6 +1200,19 @@ class config:
while "PORTAGE_DEPCACHEDIR" in self:
del self["PORTAGE_DEPCACHEDIR"]
+ overlays = self.get("PORTDIR_OVERLAY","").split()
+ if overlays:
+ new_ov = []
+ for ov in overlays:
+ ov = normalize_path(ov)
+ if os.path.isdir(ov):
+ new_ov.append(ov)
+ else:
+ writemsg("!!! Invalid PORTDIR_OVERLAY" + \
+ " (not a dir): '%s'\n" % ov, noiselevel=-1)
+ self["PORTDIR_OVERLAY"] = " ".join(new_ov)
+ self.backup_changes("PORTDIR_OVERLAY")
+
self.lookuplist=self.configlist[:]
self.lookuplist.reverse()
@@ -1211,19 +1224,6 @@ class config:
#prepend db to list to get correct order
self.uvlist[0:0]=[self.configdict[x]]
- overlays = string.split(self["PORTDIR_OVERLAY"])
- if overlays:
- new_ov=[]
- for ov in overlays:
- ov = normalize_path(ov)
- if os.path.isdir(ov):
- new_ov.append(ov)
- else:
- writemsg(red("!!! Invalid PORTDIR_OVERLAY (not a dir): "+ov+"\n"),
- noiselevel=-1)
- self["PORTDIR_OVERLAY"] = string.join(new_ov)
- self.backup_changes("PORTDIR_OVERLAY")
-
if clone is None:
self.regenerate()
self.features = portage_util.unique_array(self["FEATURES"].split())