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