mirror of
https://github.com/packwiz/packwiz-installer.git
synced 2025-04-19 21:16:30 +02:00
Check for cachedFiles existing
This commit is contained in:
parent
a5ff63c587
commit
794b817eff
@ -149,14 +149,16 @@ public class UpdateManager {
|
|||||||
ui.submitProgress(new InstallProgress("Checking local files..."));
|
ui.submitProgress(new InstallProgress("Checking local files..."));
|
||||||
|
|
||||||
List<URI> invalidatedUris = new ArrayList<>();
|
List<URI> invalidatedUris = new ArrayList<>();
|
||||||
Iterator<Map.Entry<URI, ManifestFile.File>> it = manifest.cachedFiles.entrySet().iterator();
|
if (manifest.cachedFiles != null) {
|
||||||
while (it.hasNext()) {
|
Iterator<Map.Entry<URI, ManifestFile.File>> it = manifest.cachedFiles.entrySet().iterator();
|
||||||
Map.Entry<URI, ManifestFile.File> entry = it.next();
|
while (it.hasNext()) {
|
||||||
if (entry.getValue().cachedLocation != null) {
|
Map.Entry<URI, ManifestFile.File> entry = it.next();
|
||||||
if (!Files.exists(Paths.get(opts.packFolder, entry.getValue().cachedLocation))) {
|
if (entry.getValue().cachedLocation != null) {
|
||||||
URI fileUri = entry.getKey();
|
if (!Files.exists(Paths.get(opts.packFolder, entry.getValue().cachedLocation))) {
|
||||||
System.out.println("File " + fileUri.toString() + " invalidated, marked for redownloading");
|
URI fileUri = entry.getKey();
|
||||||
invalidatedUris.add(fileUri);
|
System.out.println("File " + fileUri.toString() + " invalidated, marked for redownloading");
|
||||||
|
invalidatedUris.add(fileUri);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user