aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-09-06 12:15:06 -0700
committerZac Medico <zmedico@gentoo.org>2011-09-06 12:15:06 -0700
commit4cb0e06b04d5dfa9c257decf9895365f975fb17c (patch)
tree2cb2f84f1f9642c7dfaffff9796fe27fa3912066
parentmerge: avoid abssymlink readlink call (diff)
downloadportage-2.2.0_alpha54.tar.gz
portage-2.2.0_alpha54.tar.bz2
portage-2.2.0_alpha54.zip
abssymlink: fix inverted logic from last commitv2.2.0_alpha54
-rw-r--r--pym/portage/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index d73ea6d5e..789d04307 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -393,7 +393,7 @@ getcwd()
def abssymlink(symlink, target=None):
"This reads symlinks, resolving the relative symlinks, and returning the absolute."
- if target is None:
+ if target is not None:
mylink = target
else:
mylink = os.readlink(symlink)