/** * 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); } }
sdkLibData.setNeedsCacheReset(sdkHandler.checkResetCache()); List<File> updatedRepositories = sdkHandler.getSdkLoader() .updateRepositories(repositoryPaths, sdkLibData, logger);