[sagemath] 01/01: Force all files to have the same timestamp, otherwise sage's Makefiles destroy all our hard work
Ximin Luo
infinity0 at debian.org
Tue Jul 5 14:46:23 UTC 2016
This is an automated email from the git hooks/post-receive script.
infinity0 pushed a commit to branch master
in repository sagemath.
commit caa52d846200c0e0d87a9f24cd4cbe3df8f854df
Author: Ximin Luo <infinity0 at debian.org>
Date: Tue Jul 5 16:43:47 2016 +0200
Force all files to have the same timestamp, otherwise sage's Makefiles destroy all our hard work
---
debian/pruner/pruner.py.in | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/debian/pruner/pruner.py.in b/debian/pruner/pruner.py.in
index e7daa08..03b8a6d 100644
--- a/debian/pruner/pruner.py.in
+++ b/debian/pruner/pruner.py.in
@@ -4,9 +4,11 @@
import os
import codecs
import subprocess
+import time
system_installed_packages = 0
installed_dir = '@SAGE_ROOT@/local/var/lib/sage/installed'
+now = int(time.time())
def mkdir_if_needed(dirname):
if not os.path.exists(dirname):
@@ -19,6 +21,16 @@ def declare_system(package):
installed = codecs.open(filename, 'w')
installed.write ('system')
installed.close()
+ # This is ABSOLUTELY NECESSARY: otherwise sage's Makefiles will think that
+ # pkgs whose "package-version.txt" files that we touched later (simply
+ # because we listed them later in "dico" below), obsolete their
+ # reverse-dependencies further back in the list, and sage will try to
+ # download and build these destroying all our hard work here.
+ #
+ # The "cleaner" way to fix this is to re-order dico below to be in reverse
+ # topological order wrt the dependency graph, but I couldn't be bothered
+ # figuring out what that is.
+ os.utime(filename, (now, now))
system_installed_packages += 1
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/sagemath.git
More information about the debian-science-commits
mailing list