summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfuzzyray <fuzzyray@gentoo.org>2007-03-16 03:13:03 +0000
committerfuzzyray <fuzzyray@gentoo.org>2007-03-16 03:13:03 +0000
commit6f2e5f15be9596bcddd223712fb309f77697d2dc (patch)
treef03fb12fed5d4f129c813e176107e8bcee2e12f8
parentba067555765ae15efc7d4b84e24f7a1876568016 (diff)
downloadgentoolkit-6f2e5f15be9596bcddd223712fb309f77697d2dc.tar.gz
Fix equery check to not fail for symlinks prefixed with ./ (Bug #170702)
svn path=/; revision=358
-rw-r--r--trunk/ChangeLog4
-rwxr-xr-xtrunk/src/equery/equery3
2 files changed, 6 insertions, 1 deletions
diff --git a/trunk/ChangeLog b/trunk/ChangeLog
index 55bfe26..33dff4f 100644
--- a/trunk/ChangeLog
+++ b/trunk/ChangeLog
@@ -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)
diff --git a/trunk/src/equery/equery b/trunk/src/equery/equery
index c6ab4c9..f141fd2 100755
--- a/trunk/src/equery/equery
+++ b/trunk/src/equery/equery
@@ -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)