Merge pull request #262 from bekoenig/cleanup_on_install
Moved resource cleanup to install for support of unversioned-mode
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user