fix logic

This commit is contained in:
Casper da Costa-Luis
2019-08-19 11:59:25 +01:00
parent bee90646a7
commit 8f7a7a55e6
+2 -2
View File
@@ -748,12 +748,12 @@ class RemoteBASE(object):
self.safe_remove(path_info, force=force)
skip = True
if not self.changed(path_info, checksum_info):
elif not self.changed(path_info, checksum_info):
msg = "Data '{}' didn't change."
logger.debug(msg.format(str(path_info)))
skip = True
if self.changed_cache(checksum):
elif self.changed_cache(checksum):
msg = "Cache '{}' not found. File '{}' won't be created."
logger.warning(msg.format(checksum, str(path_info)))
self.safe_remove(path_info, force=force)