1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 14:31:46 +00:00

coninue on update failed on single file

This commit is contained in:
deadc0de6
2024-08-20 22:28:28 +02:00
committed by deadc0de
parent e09eb62784
commit d7eaee66dc

View File

@@ -303,9 +303,10 @@ class Updater:
shutil.copy2(srcpath, dstpath)
# self._mirror_file_perms(srcpath, dstpath)
except IOError as exc:
msg = f'{srcpath} update failed, do manually: {exc}'
msg = f'{srcpath} update right only failed'
msg += f', do manually: {exc}'
self.log.warn(msg)
return False
continue
self.log.sub(f'\"{dstpath}\" updated')
for i in common:
@@ -329,9 +330,9 @@ class Updater:
shutil.copy2(srcpath, dstpath)
self._mirror_file_perms(srcpath, dstpath)
except IOError as exc:
msg = f'{srcpath} update failed, do manually: {exc}'
msg = f'{srcpath} update common failed, do manually: {exc}'
self.log.warn(msg)
return False
continue
self.log.sub(f'\"{dstpath}\" content updated')
return True