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