Skip to content
Snippets Groups Projects
Commit 7691e298 authored by Chris Lamb's avatar Chris Lamb :eyes:
Browse files

jar.pm: Clojure considers the .class file to be stale if it shares the same...

jar.pm: Clojure considers the .class file to be stale if it shares the same timestamp of the .clj. We thus adjust the timestamps of the .clj to always be younger. (Closes: #877418)
parent dec86231
No related branches found
No related tags found
Loading
......@@ -92,6 +92,12 @@ sub _jar_normalize_member($$) {
# maven header should be within first 1kb of file
File::StripNondeterminism::handlers::zip::normalize_member($member,
\&File::StripNondeterminism::handlers::javaproperties::normalize);
} elsif ($member->fileName() =~ /\.clj$/) {
# Clojure considers the .class file to be stale if it shares
# the same timestamp of the .clj. We thus adjust the timestamps
# of the .clj to always be younger. We do not need to worry
# about underflowing due to SAFE_EPOCH.
$timestamp--;
} elsif ($member->fileName() =~ /\.jar$/) {
File::StripNondeterminism::handlers::zip::normalize_member($member,
\&normalize);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment