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:
kohsuke committed 2009-09-22 15:38:33 +00:00
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
}
}
/**