From 82827505fd9bc5e3e86b14ab02ee239372950ab9 Mon Sep 17 00:00:00 2001 From: genone Date: Fri, 23 Jan 2004 04:47:24 +0000 Subject: [PATCH] weird symlink stuff in equery check fixed svn path=/; revision=71 --- trunk/src/equery/equery | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/trunk/src/equery/equery b/trunk/src/equery/equery index 24d3aa3..b94234e 100755 --- a/trunk/src/equery/equery +++ b/trunk/src/equery/equery @@ -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: -- 2.26.2