only process Repo Push Requests from IndexV1 if they are enabled

This commit is contained in:
Hans-Christoph Steiner 2018-06-28 22:54:26 +02:00
parent d9781d735c
commit 1fe0d8f4b7

View File

@ -335,8 +335,10 @@ public class IndexV1Updater extends RepoUpdater {
repoPersister.commit(contentValues, repo.getId()); repoPersister.commit(contentValues, repo.getId());
profiler.log("Persited to database."); profiler.log("Persited to database.");
processRepoPushRequests(requests); if (repo.pushRequests == Repo.PUSH_REQUEST_ACCEPT_ALWAYS) {
Utils.debugLog(TAG, "Completed Repo Push Requests: " + requests); processRepoPushRequests(requests);
Utils.debugLog(TAG, "Completed Repo Push Requests: " + requests);
}
} }
private int getIntRepoValue(Map<String, Object> repoMap, String key) { private int getIntRepoValue(Map<String, Object> repoMap, String key) {