From 5e6a2f859c3729e3b9691f10628eebfb290b89d1 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 13 Sep 2008 05:34:55 +0000 Subject: [PATCH] Fix WorldHandler so that it works properly when ROOT != /. Thanks to solar for reporting. svn path=/main/branches/2.1.2/; revision=11507 --- bin/emaint | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/emaint b/bin/emaint index ea8eef4ee..696b3946d 100755 --- a/bin/emaint +++ b/bin/emaint @@ -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(): -- 2.26.2