Always install a (valid) _new file if we have one.

Thanks to deepfreeze32 for the suggested fix.
This commit is contained in:
Michael Bayne
2017-08-15 08:52:39 -07:00
parent 454a8759af
commit 19ed330a8d
@@ -1312,9 +1312,8 @@ public class Application
try {
if (_digest.validateResource(rsrc, robs)) {
// if the resource is valid but has no _local file, add it to to-install list
if (!toInstall.contains(rsrc) && !rsrc.getLocal().exists() &&
rsrc.getLocalNew().exists()) {
// if the resource has a _new file, add it to to-install list
if (!toInstall.contains(rsrc) && rsrc.getLocalNew().exists()) {
toInstall.add(rsrc);
continue;
}