Reinstate timestamp check as per CR comments
This commit is contained in:
parent
1c8cba5692
commit
3d182d8e14
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user