1 |
Author: zmedico |
2 |
Date: 2008-09-13 05:34:55 +0000 (Sat, 13 Sep 2008) |
3 |
New Revision: 11507 |
4 |
|
5 |
Modified: |
6 |
main/branches/2.1.2/bin/emaint |
7 |
Log: |
8 |
Fix WorldHandler so that it works properly when ROOT != /. Thanks to solar |
9 |
for reporting. |
10 |
|
11 |
|
12 |
Modified: main/branches/2.1.2/bin/emaint |
13 |
=================================================================== |
14 |
--- main/branches/2.1.2/bin/emaint 2008-09-13 02:47:34 UTC (rev 11506) |
15 |
+++ main/branches/2.1.2/bin/emaint 2008-09-13 05:34:55 UTC (rev 11507) |
16 |
@@ -24,11 +24,11 @@ |
17 |
self.not_installed = [] |
18 |
self.invalid_category = [] |
19 |
self.okay = [] |
20 |
- self.world_file = os.path.join("/", portage_const.WORLD_FILE) |
21 |
+ myroot = portage.settings["ROOT"] |
22 |
+ self.world_file = os.path.join(myroot, portage_const.WORLD_FILE) |
23 |
self.found = os.access(self.world_file, os.R_OK) |
24 |
|
25 |
categories = set(portage.settings.categories) |
26 |
- myroot = portage.settings["ROOT"] |
27 |
vardb = portage.db[myroot]["vartree"].dbapi |
28 |
|
29 |
for atom in open(self.world_file).read().split(): |