File: reproducible_build.patch

package info (click to toggle)
virulencefinder 2.0.4-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 992 kB
  • sloc: python: 446; sh: 51; makefile: 18
file content (18 lines) | stat: -rw-r--r-- 727 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: Make the build reproducible
Author: Chris Lamb <lamby@debian.org>
Last-Update: 2019-08-03
Bug-Debian: https://bugs.debian.org/933783

--- virulencefinder-0.0+git20190402.4812325.orig/virulencefinder.py
+++ virulencefinder-0.0+git20190402.4812325/virulencefinder.py
@@ -473,8 +473,8 @@ for db in results:
 
 # Get run info for JSON file
 service = os.path.basename(__file__).replace(".py", "")
-date = time.strftime("%d.%m.%Y")
-time = time.strftime("%H:%M:%S")
+date = time.strftime("%d.%m.%Y", time.gmtime(int(os.environ.get('SOURCE_DATE_EPOCH', time.time()))))
+time = time.strftime("%H:%M:%S", time.gmtime(int(os.environ.get('SOURCE_DATE_EPOCH', time.time()))))
 
 # Make JSON output file
 data = {service: {}}