/** * This method checks if the cache of the local and remote repositories has been already reset * this build. */ public boolean checkResetCache() { return sdkLibData.needsCacheReset(); } }
/** * Checks whether the {@link RepoManager} needs to have its local and remote packages cache * reset and invalidates them if they do. */ private void checkNeedsCacheReset(RepoManager repoManager, SdkLibData sdkLibData) { if (sdkLibData.needsCacheReset()) { repoManager.markInvalid(); sdkLibData.setNeedsCacheReset(false); } }