Moved resource cleanup to install for support of unversioned-mode

This commit is contained in:
m500020
2022-03-10 13:48:20 +01:00
committed by Benjamin König
parent bb4b9e3390
commit 315ba430e0
@@ -138,6 +138,12 @@ public abstract class Getdown
_toInstallResources.clear();
_readyToInstall = false;
log.info("Install completed.");
// do resource cleanup
final List<String> cleanupPatterns = _app.cleanupPatterns();
if (!cleanupPatterns.isEmpty()) {
cleanupResources(cleanupPatterns);
}
} else {
log.info("Nothing to install.");
}
@@ -344,12 +350,6 @@ public abstract class Getdown
log.info("Application requires update.");
update();
// do resource cleanup
final List<String> cleanupPatterns = _app.cleanupPatterns();
if (!cleanupPatterns.isEmpty()) {
cleanupResources(cleanupPatterns);
}
// loop back again and reverify the metadata
continue;
}