Fix for package.py to account for PORTDIR being a symbolic link when checking if...
authorfuzzyray <fuzzyray@gentoo.org>
Fri, 9 Jan 2009 04:43:01 +0000 (04:43 -0000)
committerfuzzyray <fuzzyray@gentoo.org>
Fri, 9 Jan 2009 04:43:01 +0000 (04:43 -0000)
svn path=/; revision=538

trunk/src/gentoolkit/package.py

index 6f525adb8822d6da936066184eb5d00378e7a61a..4f28671a46625bcc2817b8cec3b93ab0a096023b 100644 (file)
@@ -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"""