Merge pull request #2231 from efiop/2146

checkout: safe_remove output if no checksum is found
This commit is contained in:
Ruslan Kuprieiev
2019-07-06 02:25:38 +03:00
committed by GitHub
2 changed files with 11 additions and 2 deletions
+5 -2
View File
@@ -767,8 +767,11 @@ class RemoteBASE(object):
checksum = checksum_info.get(self.PARAM_CHECKSUM)
if not checksum:
msg = "No checksum info for '{}'."
logger.debug(msg.format(str(path_info)))
logger.warning(
"No checksum info found for '{}'. "
"It won't be created.".format(str(path_info))
)
self.safe_remove(path_info, force=force)
return
if not self.changed(path_info, checksum_info):