[pysal] 01/01: Remove unneeded conditional in reproducible-build-and-output.patch.

Bas Couwenberg sebastic at debian.org
Sat Jul 30 18:01:29 UTC 2016


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

sebastic pushed a commit to branch master
in repository pysal.

commit c7f2a816e2b0624cd136122674ea68a9370255cd
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Sat Jul 30 20:00:50 2016 +0200

    Remove unneeded conditional in reproducible-build-and-output.patch.
---
 debian/changelog                                   |  7 +++++++
 debian/patches/reproducible-build-and-output.patch | 11 ++++-------
 2 files changed, 11 insertions(+), 7 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index d32ae81..270dcc7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+pysal (1.11.2-3) UNRELEASED; urgency=medium
+
+  * Team upload.
+  * Remove unneeded conditional in reproducible-build-and-output.patch.
+
+ -- Bas Couwenberg <sebastic at debian.org>  Sat, 30 Jul 2016 20:00:20 +0200
+
 pysal (1.11.2-2) unstable; urgency=medium
 
   * Team upload.
diff --git a/debian/patches/reproducible-build-and-output.patch b/debian/patches/reproducible-build-and-output.patch
index e7612de..7fecc31 100644
--- a/debian/patches/reproducible-build-and-output.patch
+++ b/debian/patches/reproducible-build-and-output.patch
@@ -13,17 +13,14 @@ Forwarded: https://github.com/pysal/pysal/pull/856
  
  __author__ = "Charles R Schmidt <schmidtc at gmail.com>"
  __all__ = ['DBF']
-@@ -272,7 +274,12 @@ class DBF(pysal.core.Tables.DataTable):
+@@ -272,7 +274,9 @@ class DBF(pysal.core.Tables.DataTable):
          POS = self.f.tell()
          self.f.seek(0)
          ver = 3
 -        now = datetime.datetime.now()
-+        if 'SOURCE_DATE_EPOCH' in os.environ:
-+            now = datetime.datetime.utcfromtimestamp(
-+                int(os.environ.get('SOURCE_DATE_EPOCH', time.time())),
-+            )
-+        else:
-+            now = datetime.datetime.now()
++        now = datetime.datetime.utcfromtimestamp(
++            int(os.environ.get('SOURCE_DATE_EPOCH', time.time())),
++        )
          yr, mon, day = now.year - 1900, now.month, now.day
          numrec = self.numrec
          numfields = len(self.header)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/pysal.git



More information about the Pkg-grass-devel mailing list