Limit --emptytree to only affect ${ROOT} (#34887)
authorJason Stubbs <jstubbs@gentoo.org>
Wed, 9 Nov 2005 12:56:10 +0000 (12:56 -0000)
committerJason Stubbs <jstubbs@gentoo.org>
Wed, 9 Nov 2005 12:56:10 +0000 (12:56 -0000)
svn path=/main/trunk/; revision=2266

bin/emerge

index 8a8b6beb4dd197aa32c71816ae5bc108f5642809..aaa288ec42c9a356bd6dba8b94373dd94ced23de 100755 (executable)
@@ -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 != "/":