Fix equery check to not fail for symlinks prefixed with ./ (Bug #170702)
authorfuzzyray <fuzzyray@gentoo.org>
Fri, 16 Mar 2007 03:13:03 +0000 (03:13 -0000)
committerfuzzyray <fuzzyray@gentoo.org>
Fri, 16 Mar 2007 03:13:03 +0000 (03:13 -0000)
svn path=/; revision=358

trunk/ChangeLog
trunk/src/equery/equery

index 55bfe26fd1ba55eaadaa5b41f36f3c2050608ffe..33dff4fb202c8e9d4bb8210524867748ec3791a9 100644 (file)
@@ -1,3 +1,7 @@
+2007-03-15 Paul Varner <fuzzyray@gentoo.org>
+       * equery: Fix equery check to not fail for symlinks prefixed with ./
+       (Bug #170702)
+
 2007-03-14 Paul Varner <fuzzyray@gentoo.org>
        * equery: Trim trailing slash from query for equery belongs command
        (Bug #170981)
index c6ab4c9d11ba399986c5afa9292668afe4fb6ee3..f141fd2a8665dfcbebc886af197dc4ac1e14b5c4 100755 (executable)
@@ -951,7 +951,8 @@ class CmdCheckIntegrity(Command):
                                        elif type == "sym":
                                                # FIXME: nastry strippery; portage should have this fixed!
                                                t = files[file][2]
-                                               target = os.path.normpath(t.strip())
+                                               # target = os.path.normpath(t.strip())
+                                               target = t.strip()
                                                if not os.path.islink(file):
                                                        raise CheckException(file + " exists, but is not a symlink")
                                                tgt = os.readlink(file)