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();
|
_toInstallResources.clear();
|
||||||
_readyToInstall = false;
|
_readyToInstall = false;
|
||||||
log.info("Install completed.");
|
log.info("Install completed.");
|
||||||
|
|
||||||
|
// do resource cleanup
|
||||||
|
final List<String> cleanupPatterns = _app.cleanupPatterns();
|
||||||
|
if (!cleanupPatterns.isEmpty()) {
|
||||||
|
cleanupResources(cleanupPatterns);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
log.info("Nothing to install.");
|
log.info("Nothing to install.");
|
||||||
}
|
}
|
||||||
@@ -344,12 +350,6 @@ public abstract class Getdown
|
|||||||
log.info("Application requires update.");
|
log.info("Application requires update.");
|
||||||
update();
|
update();
|
||||||
|
|
||||||
// do resource cleanup
|
|
||||||
final List<String> cleanupPatterns = _app.cleanupPatterns();
|
|
||||||
if (!cleanupPatterns.isEmpty()) {
|
|
||||||
cleanupResources(cleanupPatterns);
|
|
||||||
}
|
|
||||||
|
|
||||||
// loop back again and reverify the metadata
|
// loop back again and reverify the metadata
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user