abssymlink: fix inverted logic from last commit v2.2.0_alpha54
authorZac Medico <zmedico@gentoo.org>
Tue, 6 Sep 2011 19:15:06 +0000 (12:15 -0700)
committerZac Medico <zmedico@gentoo.org>
Tue, 6 Sep 2011 19:15:06 +0000 (12:15 -0700)
pym/portage/__init__.py

index d73ea6d5e944c1659a659d61d4b42f05184e8ee9..789d04307ae48ba693b5bfc40e119be963348f91 100644 (file)
@@ -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)