diff options
| author | fuzzyray <fuzzyray@gentoo.org> | 2009-01-09 04:43:01 +0000 |
|---|---|---|
| committer | fuzzyray <fuzzyray@gentoo.org> | 2009-01-09 04:43:01 +0000 |
| commit | c8d9f50ac65edc61e550174de2af5cc477442a73 (patch) | |
| tree | 3ab4351870d43a71e6ce2c94270fc247bbd33d42 /trunk | |
| parent | af6e0bc6b606d21fb212765fe34bad45ac41cd7e (diff) | |
| download | gentoolkit-c8d9f50ac65edc61e550174de2af5cc477442a73.tar.gz | |
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
Diffstat (limited to 'trunk')
| -rw-r--r-- | trunk/src/gentoolkit/package.py | 4 |
1 files changed, 1 insertions, 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""" |
