weird symlink stuff in equery check fixed
authorgenone <genone@gentoo.org>
Fri, 23 Jan 2004 04:47:24 +0000 (04:47 -0000)
committergenone <genone@gentoo.org>
Fri, 23 Jan 2004 04:47:24 +0000 (04:47 -0000)
svn path=/; revision=71

trunk/src/equery/equery

index 24d3aa37dfc30b0fdb8d30555223550e24f1adec..b94234ebbdb748ce20fb84102c612aeeba8611ff 100755 (executable)
@@ -610,8 +610,7 @@ class CmdCheckIntegrity(Command):
                                        elif type == "sym":
                                                # FIXME: nastry strippery; portage should have this fixed!
                                                t = files[file][2]
-                                               i = t.find("(")
-                                               target = t[0:i].strip()
+                                               target = os.path.normpath(t.strip())
                                                if not os.path.islink(file):
                                                        raise CheckException(file + " exists, but is not a symlink")
                                                tgt = os.readlink(file)
@@ -944,7 +943,7 @@ if __name__ == "__main__":
                                        print red("!!!"), "    "+p
                        else:
                                print red("!!!"), "Internal portage error, terminating"
-                               if len(e[0])):
+                               if len(e[0]):
                                        print red("!!!"), e[0]
                        sys.exit(2)
        else: