Note: Due to technical difficulties, the Archives are currently not up to date.
GMANE provides an alternative service for most mailing lists. c.f. bug 424647
List Archive: gentoo-commits
Author: fuzzyray
Date: 2009-01-09 04:43:01 +0000 (Fri, 09 Jan 2009)
New Revision: 538
Modified:
trunk/src/gentoolkit/package.py
Log:
Fix for package.py to account for PORTDIR being a symbolic link when checking if a package is in an overlay.
Modified: trunk/src/gentoolkit/package.py
===================================================================
--- trunk/src/gentoolkit/package.py 2009-01-09 04:20:48 UTC (rev 537)
+++ trunk/src/gentoolkit/package.py 2009-01-09 04:43:01 UTC (rev 538)
@@ -26,9 +26,7 @@
self._db = None
self._settings = settings
self._settingslock = settingslock
- self._portdir_path = settings["PORTDIR"]
- if os.path.islink(self._portdir_path):
- self._portdir_path = os.path.join(os.path.dirname(self._portdir_path), os.readlink(self._portdir_path))
+ self._portdir_path = os.path.realpath(settings["PORTDIR"])
def get_name(self):
"""Returns base name of package, no category nor version"""
|
|