Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:marec2000:devel:java
java-11-openjdk
reproducible-directory-mtime.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File reproducible-directory-mtime.patch of Package java-11-openjdk
diff --git a/src/java.base/share/classes/java/io/File.java b/src/java.base/share/classes/java/io/File.java index cdf15e092b..5b5dc365fc 100644 --- a/src/java.base/share/classes/java/io/File.java +++ b/src/java.base/share/classes/java/io/File.java @@ -1364,7 +1364,11 @@ public class File if (isInvalid()) { return false; } - return fs.createDirectory(this); + boolean result = fs.createDirectory(this); + if ( result && System.getenv("SOURCE_DATE_EPOCH") != null ) { + fs.setLastModifiedTime(this, 1000 * Long.parseLong(System.getenv("SOURCE_DATE_EPOCH"))); + } + return result; } /**
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor