Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP4:FactoryCandidates
java-1_8_0-openjdk
reproducible-directory-mtime.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File reproducible-directory-mtime.patch of Package java-1_8_0-openjdk
--- openjdk/jdk/src/share/classes/java/io/File.java 2024-10-07 14:14:13.587124931 +0200 +++ openjdk/jdk/src/share/classes/java/io/File.java 2024-10-07 14:15:27.187669663 +0200 @@ -1352,7 +1352,11 @@ 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