提交 be7cdd1e 编写于 作者: K kohsuke

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
上级 1f467363
......@@ -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
}
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册