* [gentoo-commits] portage r11507 - main/branches/2.1.2/bin
@ 2008-09-13 5:34 Zac Medico (zmedico)
0 siblings, 0 replies; only message in thread
From: Zac Medico (zmedico) @ 2008-09-13 5:34 UTC (permalink / raw
To: gentoo-commits
Author: zmedico
Date: 2008-09-13 05:34:55 +0000 (Sat, 13 Sep 2008)
New Revision: 11507
Modified:
main/branches/2.1.2/bin/emaint
Log:
Fix WorldHandler so that it works properly when ROOT != /. Thanks to solar
for reporting.
Modified: main/branches/2.1.2/bin/emaint
===================================================================
--- main/branches/2.1.2/bin/emaint 2008-09-13 02:47:34 UTC (rev 11506)
+++ main/branches/2.1.2/bin/emaint 2008-09-13 05:34:55 UTC (rev 11507)
@@ -24,11 +24,11 @@
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():
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-09-13 5:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-13 5:34 [gentoo-commits] portage r11507 - main/branches/2.1.2/bin Zac Medico (zmedico)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox