Fix WorldHandler so that it works properly when ROOT != /. Thanks to solar
authorZac Medico <zmedico@gentoo.org>
Sat, 13 Sep 2008 05:34:55 +0000 (05:34 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 13 Sep 2008 05:34:55 +0000 (05:34 -0000)
for reporting.

svn path=/main/branches/2.1.2/; revision=11507

bin/emaint

index ea8eef4ee3164ec62503aa6ce66c333b152e1de0..696b3946d582b81073d7acc8ff1dab27aac38c6a 100755 (executable)
@@ -24,11 +24,11 @@ class WorldHandler(object):
                self.not_installed = []
                self.invalid_category = []
                self.okay = []
-               self.world_file = os.path.join("/", portage_const.WORLD_FILE)
+               myroot = portage.settings["ROOT"]
+               self.world_file = os.path.join(myroot, portage_const.WORLD_FILE)
                self.found = os.access(self.world_file, os.R_OK)
 
                categories = set(portage.settings.categories)
-               myroot = portage.settings["ROOT"]
                vardb = portage.db[myroot]["vartree"].dbapi
 
                for atom in open(self.world_file).read().split():