summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage.py18
1 files changed, 5 insertions, 13 deletions
diff --git a/pym/portage.py b/pym/portage.py
index c41dfbd60..9977cdfc6 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -1195,6 +1195,11 @@ class config:
self["PORTAGE_GID"] = str(portage_gid)
self.backup_changes("PORTAGE_GID")
+ if self.get("PORTAGE_DEPCACHEDIR", None):
+ self.depcachedir = self["PORTAGE_DEPCACHEDIR"]
+ while "PORTAGE_DEPCACHEDIR" in self:
+ del self["PORTAGE_DEPCACHEDIR"]
+
self.lookuplist=self.configlist[:]
self.lookuplist.reverse()
@@ -1206,19 +1211,6 @@ class config:
#prepend db to list to get correct order
self.uvlist[0:0]=[self.configdict[x]]
- if self["PORTAGE_CACHEDIR"]:
- # XXX: Deprecated -- April 15 -- NJ
- writemsg(yellow(">>> PORTAGE_CACHEDIR has been deprecated!")+"\n")
- writemsg(">>> Please use PORTAGE_DEPCACHEDIR instead.\n")
- self.depcachedir = self["PORTAGE_CACHEDIR"]
- del self["PORTAGE_CACHEDIR"]
-
- if self["PORTAGE_DEPCACHEDIR"]:
- #the auxcache is the only /var/cache/edb/ entry that stays at / even when "root" changes.
- # XXX: Could move with a CHROOT functionality addition.
- self.depcachedir = self["PORTAGE_DEPCACHEDIR"]
- del self["PORTAGE_DEPCACHEDIR"]
-
overlays = string.split(self["PORTDIR_OVERLAY"])
if overlays:
new_ov=[]