1 |
Author: fuzzyray |
2 |
Date: 2009-01-09 04:20:48 +0000 (Fri, 09 Jan 2009) |
3 |
New Revision: 537 |
4 |
|
5 |
Modified: |
6 |
trunk/ChangeLog |
7 |
trunk/src/gentoolkit/package.py |
8 |
Log: |
9 |
Fix package.py to account for PORTDIR being a symbolic link when checking if a package is in an overlay. (Bug #253968) |
10 |
|
11 |
Modified: trunk/ChangeLog |
12 |
=================================================================== |
13 |
--- trunk/ChangeLog 2009-01-07 10:46:21 UTC (rev 536) |
14 |
+++ trunk/ChangeLog 2009-01-09 04:20:48 UTC (rev 537) |
15 |
@@ -1,3 +1,7 @@ |
16 |
+2009-01-08: Paul Varner <fuzzyray@g.o> |
17 |
+ * equery: Fix package.py to account for PORTDIR being a symbolic link |
18 |
+ when checking if a package is in an overlay. (Bug #253968) |
19 |
+ |
20 |
2008-11-25: Paul Varner <fuzzyray@g.o> |
21 |
* revdep-rebuild: Fixes for non-linux Gentoo systems. Add patch from |
22 |
igli to fix find command to comply with POSIX. Change awk calls to |
23 |
|
24 |
Modified: trunk/src/gentoolkit/package.py |
25 |
=================================================================== |
26 |
--- trunk/src/gentoolkit/package.py 2009-01-07 10:46:21 UTC (rev 536) |
27 |
+++ trunk/src/gentoolkit/package.py 2009-01-09 04:20:48 UTC (rev 537) |
28 |
@@ -7,6 +7,7 @@ |
29 |
# |
30 |
# $Header$ |
31 |
|
32 |
+import os |
33 |
from errors import FatalError |
34 |
import portage |
35 |
from gentoolkit import * |
36 |
@@ -25,6 +26,9 @@ |
37 |
self._db = None |
38 |
self._settings = settings |
39 |
self._settingslock = settingslock |
40 |
+ self._portdir_path = settings["PORTDIR"] |
41 |
+ if os.path.islink(self._portdir_path): |
42 |
+ self._portdir_path = os.path.join(os.path.dirname(self._portdir_path), os.readlink(self._portdir_path)) |
43 |
|
44 |
def get_name(self): |
45 |
"""Returns base name of package, no category nor version""" |
46 |
@@ -151,7 +155,7 @@ |
47 |
def is_overlay(self): |
48 |
"""Returns true if the package is in an overlay.""" |
49 |
dir,ovl = portage.portdb.findname2(self._cpv) |
50 |
- return ovl != settings["PORTDIR"] |
51 |
+ return ovl != self._portdir_path |
52 |
|
53 |
def is_masked(self): |
54 |
"""Returns true if this package is masked against installation. Note: We blindly assume that |