[reprotest] 02/02: Increase the faketime date offset to be larger than 1 year

Ximin Luo infinity0 at debian.org
Thu Jan 5 16:23:07 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 91920fb7a447ab8ee99d5397181a32ac08976f79
Author: Ximin Luo <infinity0 at debian.org>
Date:   Thu Jan 5 17:22:52 2017 +0100

    Increase the faketime date offset to be larger than 1 year
---
 reprotest/__init__.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/reprotest/__init__.py b/reprotest/__init__.py
index 1ec9f17..0423ea1 100644
--- a/reprotest/__init__.py
+++ b/reprotest/__init__.py
@@ -317,12 +317,12 @@ def faketime(script, env, tree, source_root):
     filemtimes = (os.path.getmtime(os.path.join(root, f)) for root, dirs, files in os.walk(source_root) for f in files)
     now = time.time()
     lastmt = int(max(filemtimes, default=now))
-    if lastmt < now - 18429180:
+    if lastmt < now - 32253180:
         # if lastmt is far in the past, use that, it's a bit safer
         faket = '@%s' % lastmt
     else:
         # otherwise use a date far in the future
-        faket = '+213days+7hours+13minutes'
+        faket = '+373days+7hours+13minutes'
     settime = _shell_ast.SimpleCommand.make('faketime', faket)
     new_experiment = script.experiment.append_command(settime)
     # faketime's manpages are stupidly misleading; it also modifies file timestamps.

-- 
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