Fix emaint world $ROOT handling.
authorZac Medico <zmedico@gentoo.org>
Mon, 28 May 2007 09:34:52 +0000 (09:34 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 28 May 2007 09:34:52 +0000 (09:34 -0000)
svn path=/main/trunk/; revision=6653

bin/emaint

index d1efc0ab8fd695a012a5ac75c7f1c4414bbced78..174b4540dd3e28df3ed61d7a055ee2747ef0c004 100755 (executable)
@@ -24,12 +24,12 @@ class WorldHandler(object):
                self.not_installed = []
                self.invalid_category = []
                self.okay = []
-               self.world_file = os.path.join("/", portage.const.WORLD_FILE)
-               self.found = os.access(self.world_file, os.R_OK)
 
        def _check_world(self, onProgress):
                categories = set(portage.settings.categories)
                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)
                vardb = portage.db[myroot]["vartree"].dbapi
 
                world_atoms = open(self.world_file).read().split()