From: fuzzyray Date: Fri, 9 Jan 2009 04:43:01 +0000 (-0000) Subject: Fix for package.py to account for PORTDIR being a symbolic link when checking if... X-Git-Tag: gentoolkit-0.2.4.3^2~18 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c8d9f50ac65edc61e550174de2af5cc477442a73;p=gentoolkit.git Fix for package.py to account for PORTDIR being a symbolic link when checking if a package is in an overlay. svn path=/; revision=538 --- diff --git a/trunk/src/gentoolkit/package.py b/trunk/src/gentoolkit/package.py index 6f525ad..4f28671 100644 --- a/trunk/src/gentoolkit/package.py +++ b/trunk/src/gentoolkit/package.py @@ -26,9 +26,7 @@ class Package: 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"""