From 7888cea4d46e69e6e7b8463b2f8fc92649ab16b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fatih=20A=C5=9F=C4=B1c=C4=B1?= Date: Wed, 27 Oct 2010 09:06:17 +0000 Subject: [PATCH] check: Normalize symlink targets before calculating their sums BUG:FIXED:14906 --- pisi/operations/check.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pisi/operations/check.py b/pisi/operations/check.py index 22a61bd2..64a6cf08 100644 --- a/pisi/operations/check.py +++ b/pisi/operations/check.py @@ -20,7 +20,7 @@ _ = __trans.ugettext def file_corrupted(pfile): path = os.path.join(ctx.config.dest_dir(), pfile.path) if os.path.islink(path): - if pisi.util.sha1_data(os.readlink(path)) != pfile.hash: + if pisi.util.sha1_data(pisi.util.read_link(path)) != pfile.hash: return True else: if pisi.util.sha1_file(path) != pfile.hash: