mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-05 16:15:54 +00:00
This is the correct fix for HUDSON-4353.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21996 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
1f46736399
commit
be7cdd1e92
1 file changed
+6
-2
@@ -324,7 +324,7 @@ public class ClassicPluginStrategy implements PluginStrategy {
|
||||
|
||||
// timestamp check
|
||||
File explodeTime = new File(destDir,".timestamp");
|
||||
if(explodeTime.exists() && explodeTime.lastModified()>archive.lastModified())
|
||||
if(explodeTime.exists() && explodeTime.lastModified()!=archive.lastModified())
|
||||
return; // no need to expand
|
||||
|
||||
LOGGER.info("Extracting "+archive);
|
||||
@@ -345,7 +345,11 @@ public class ClassicPluginStrategy implements PluginStrategy {
|
||||
throw ioe;
|
||||
}
|
||||
|
||||
Util.touch(explodeTime);
|
||||
try {
|
||||
new FilePath(explodeTime).touch(archive.lastModified());
|
||||
} catch (InterruptedException e) {
|
||||
throw new AssertionError(e); // impossible
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user