projects
/
gentoolkit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af6e0bc
)
Fix for package.py to account for PORTDIR being a symbolic link when checking if...
author
fuzzyray
<fuzzyray@gentoo.org>
Fri, 9 Jan 2009 04:43:01 +0000
(
04:43
-0000)
committer
fuzzyray
<fuzzyray@gentoo.org>
Fri, 9 Jan 2009 04:43:01 +0000
(
04:43
-0000)
svn path=/; revision=538
trunk/src/gentoolkit/package.py
patch
|
blob
|
history
diff --git
a/trunk/src/gentoolkit/package.py
b/trunk/src/gentoolkit/package.py
index 6f525adb8822d6da936066184eb5d00378e7a61a..4f28671a46625bcc2817b8cec3b93ab0a096023b 100644
(file)
--- 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"""