[reprotest] 02/04: build: Don't fail when the build produces a broken symlink

Ximin Luo infinity0 at debian.org
Thu Oct 26 22:01:11 UTC 2017


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch master
in repository reprotest.

commit eac9e9ba4eff38165bf6c556623a9768e5fd4522
Author: Ximin Luo <infinity0 at debian.org>
Date:   Thu Oct 26 22:42:06 2017 +0200

    build: Don't fail when the build produces a broken symlink
---
 reprotest/build.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/reprotest/build.py b/reprotest/build.py
index 17fa7bc..50ea0e3 100644
--- a/reprotest/build.py
+++ b/reprotest/build.py
@@ -478,7 +478,7 @@ class TimeVariation(collections.namedtuple('_TimeVariation', 'faketimes auto_fak
                 # This tries hard to avoid bad interactions with faketime and make(1) etc.
                 # However if you're building this too soon after changing one of the source
                 # files then the effect of this variation is not very great.
-                filemtimes = (os.path.getmtime(os.path.join(root, f)) for root, dirs, files in os.walk(source_root) for f in files)
+                filemtimes = (os.lstat(os.path.join(root, f)).st_mtime for root, dirs, files in os.walk(source_root) for f in files)
                 new_faketimes.append("@%d" % int(max(filemtimes, default=0)))
             else:
                 raise ValueError("unrecognized auto_faketime: %s" % a)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/reprotest.git



More information about the Reproducible-commits mailing list