summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-05-28 09:34:52 +0000
committerZac Medico <zmedico@gentoo.org>2007-05-28 09:34:52 +0000
commit8805dcd785ff929ba6de5dfd702cdd9750547368 (patch)
treee6d4b40c9af0096a9ae29653d5daab545b7b98cc
parent8fc7b6a4a3c745a376ec3fcd63aa8ca796a0b29f (diff)
downloadportage-8805dcd785ff929ba6de5dfd702cdd9750547368.tar.gz
portage-8805dcd785ff929ba6de5dfd702cdd9750547368.tar.bz2
portage-8805dcd785ff929ba6de5dfd702cdd9750547368.zip
Fix emaint world $ROOT handling.
svn path=/main/trunk/; revision=6653
-rwxr-xr-xbin/emaint4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/emaint b/bin/emaint
index d1efc0ab8..174b4540d 100755
--- a/bin/emaint
+++ b/bin/emaint
@@ -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()