[Python-modules-commits] r34515 - in packages/stsci.distutils/trunk/debian (2 files)

aurel32 at users.alioth.debian.org aurel32 at users.alioth.debian.org
Thu Oct 8 08:42:56 UTC 2015


    Date: Thursday, October 8, 2015 @ 08:42:54
  Author: aurel32
Revision: 34515

Use datetime.utcfromtimestamp instead of datetime.fromtimestamp to parse
SOURCE_DATE_EPOCH.

Modified:
  packages/stsci.distutils/trunk/debian/changelog
  packages/stsci.distutils/trunk/debian/patches/01-SOURCE_DATE_EPOCH.diff

Modified: packages/stsci.distutils/trunk/debian/changelog
===================================================================
--- packages/stsci.distutils/trunk/debian/changelog	2015-10-07 20:17:21 UTC (rev 34514)
+++ packages/stsci.distutils/trunk/debian/changelog	2015-10-08 08:42:54 UTC (rev 34515)
@@ -1,3 +1,10 @@
+stsci.distutils (0.3.7-4) UNRELEASED; urgency=medium
+
+  * Use datetime.utcfromtimestamp instead of datetime.fromtimestamp to parse
+    SOURCE_DATE_EPOCH.
+
+ -- Aurelien Jarno <aurel32 at debian.org>  Thu, 08 Oct 2015 10:41:53 +0200
+
 stsci.distutils (0.3.7-3) unstable; urgency=medium
 
   * Stop exporting SOURCE_DATE_EPOCH in debian/rules now that it's

Modified: packages/stsci.distutils/trunk/debian/patches/01-SOURCE_DATE_EPOCH.diff
===================================================================
--- packages/stsci.distutils/trunk/debian/patches/01-SOURCE_DATE_EPOCH.diff	2015-10-07 20:17:21 UTC (rev 34514)
+++ packages/stsci.distutils/trunk/debian/patches/01-SOURCE_DATE_EPOCH.diff	2015-10-08 08:42:54 UTC (rev 34515)
@@ -6,7 +6,7 @@
  
 -    d = datetime.datetime.now()
 +    if 'SOURCE_DATE_EPOCH' in os.environ:
-+        d = datetime.datetime.fromtimestamp((int(os.environ.get('SOURCE_DATE_EPOCH'))))
++        d = datetime.datetime.utcfromtimestamp((int(os.environ.get('SOURCE_DATE_EPOCH'))))
 +    else:
 +        d = datetime.datetime.now()
  




More information about the Python-modules-commits mailing list