summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Stubbs <jstubbs@gentoo.org>2005-11-09 12:56:10 +0000
committerJason Stubbs <jstubbs@gentoo.org>2005-11-09 12:56:10 +0000
commit2a3b095d1b920210e6925de721268117311bde3c (patch)
tree8afbeeaec65bab247deb7ef97297a54fae245943
parent42ac8eed3999c3324bc14c74b96be3535e76ea72 (diff)
downloadportage-2a3b095d1b920210e6925de721268117311bde3c.tar.gz
portage-2a3b095d1b920210e6925de721268117311bde3c.tar.bz2
portage-2a3b095d1b920210e6925de721268117311bde3c.zip
Limit --emptytree to only affect ${ROOT} (#34887)
svn path=/main/trunk/; revision=2266
-rwxr-xr-xbin/emerge2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/emerge b/bin/emerge
index 8a8b6beb4..aaa288ec4 100755
--- a/bin/emerge
+++ b/bin/emerge
@@ -903,7 +903,7 @@ class depgraph:
self.outdatedpackages=[]
self.mydbapi={}
self.mydbapi["/"] = portage.fakedbapi()
- if "empty" not in myparams:
+ if "empty" not in myparams or portage.root != "/":
for pkg in portage.db["/"]["vartree"].getallcpv():
self.mydbapi["/"].cpv_inject(pkg)
if portage.root != "/":