Skip to content

Commit

Permalink
Merge pull request #265 from CMoH/jenkins-9577
Browse files Browse the repository at this point in the history
[JENKINS-9577] Fix last modification timestamp after unzip
  • Loading branch information
ssogabe committed Sep 29, 2011
2 parents e8e9ac0 + f967fea commit 2bd40df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/hudson/FilePath.java
Expand Up @@ -499,7 +499,6 @@ private void unzip(File dir, File zipFile) throws IOException {
p.mkdirs();
}
IOUtils.copy(zip.getInputStream(e), f);
f.setLastModified(e.getTime());
try {
FilePath target = new FilePath(f);
int mode = e.getUnixMode();
Expand All @@ -508,6 +507,7 @@ private void unzip(File dir, File zipFile) throws IOException {
} catch (InterruptedException ex) {
LOGGER.log(Level.WARNING, "unable to set permissions", ex);
}
f.setLastModified(e.getTime());
}
}
} finally {
Expand Down

0 comments on commit 2bd40df

Please sign in to comment.