Reinstate timestamp check as per CR comments

This commit is contained in:
Peter Serwylo 2016-07-18 22:28:49 +10:00
parent 1c8cba5692
commit 3d182d8e14

View File

@ -199,12 +199,10 @@ public class RepoUpdater {
reader.setContentHandler(repoXMLHandler); reader.setContentHandler(repoXMLHandler);
reader.parse(new InputSource(indexInputStream)); reader.parse(new InputSource(indexInputStream));
if (repoDetailsToSave.containsKey(RepoTable.Cols.TIMESTAMP)) { long timestamp = repoDetailsToSave.getAsLong(RepoTable.Cols.TIMESTAMP);
long timestamp = repoDetailsToSave.getAsLong(RepoTable.Cols.TIMESTAMP); if (timestamp < repo.timestamp) {
if (timestamp < repo.timestamp) { throw new UpdateException(repo, "index.jar is older that current index! "
throw new UpdateException(repo, "index.jar is older that current index! " + timestamp + " < " + repo.timestamp);
+ timestamp + " < " + repo.timestamp);
}
} }
signingCertFromJar = getSigningCertFromJar(indexEntry); signingCertFromJar = getSigningCertFromJar(indexEntry);