From 8163a03ddd43dd67de2d0f0c9c9ebe590e910f3f38e0d96971009124968bf83b Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Mon, 22 Jul 2024 08:01:54 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Java:packages/ant?expand=0&rev=201 --- reproducible-jar-mtime.patch | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/reproducible-jar-mtime.patch b/reproducible-jar-mtime.patch index 2a4d837..1a089bf 100644 --- a/reproducible-jar-mtime.patch +++ b/reproducible-jar-mtime.patch @@ -1,11 +1,12 @@ --- apache-ant-1.10.14/src/main/org/apache/tools/ant/taskdefs/condition/IsLastModified.java 2024-07-22 09:18:51.385562681 +0200 -+++ apache-ant-1.10.14/src/main/org/apache/tools/ant/taskdefs/condition/IsLastModified.java 2024-07-22 09:44:04.730208036 +0200 -@@ -128,6 +128,8 @@ ++++ apache-ant-1.10.14/src/main/org/apache/tools/ant/taskdefs/condition/IsLastModified.java 2024-07-22 10:01:32.218061839 +0200 +@@ -128,6 +128,9 @@ return millis; } if ("now".equalsIgnoreCase(dateTime)) { + if ( System.getenv("SOURCE_DATE_EPOCH") != null ) { + return 1000 * Long.parseLong(System.getenv("SOURCE_DATE_EPOCH")); ++ } return System.currentTimeMillis(); } DateFormat df = dfFactory.getPrimaryFormat();