From c8d9f50ac65edc61e550174de2af5cc477442a73 Mon Sep 17 00:00:00 2001 From: fuzzyray Date: Fri, 9 Jan 2009 04:43:01 +0000 Subject: [PATCH] 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 --- trunk/src/gentoolkit/package.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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""" -- 2.26.2