mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-04 19:09:44 +00:00
coninue on update failed on single file
This commit is contained in:
@@ -303,9 +303,10 @@ class Updater:
|
|||||||
shutil.copy2(srcpath, dstpath)
|
shutil.copy2(srcpath, dstpath)
|
||||||
# self._mirror_file_perms(srcpath, dstpath)
|
# self._mirror_file_perms(srcpath, dstpath)
|
||||||
except IOError as exc:
|
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)
|
self.log.warn(msg)
|
||||||
return False
|
continue
|
||||||
self.log.sub(f'\"{dstpath}\" updated')
|
self.log.sub(f'\"{dstpath}\" updated')
|
||||||
|
|
||||||
for i in common:
|
for i in common:
|
||||||
@@ -329,9 +330,9 @@ class Updater:
|
|||||||
shutil.copy2(srcpath, dstpath)
|
shutil.copy2(srcpath, dstpath)
|
||||||
self._mirror_file_perms(srcpath, dstpath)
|
self._mirror_file_perms(srcpath, dstpath)
|
||||||
except IOError as exc:
|
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)
|
self.log.warn(msg)
|
||||||
return False
|
continue
|
||||||
self.log.sub(f'\"{dstpath}\" content updated')
|
self.log.sub(f'\"{dstpath}\" content updated')
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|||||||
Reference in New Issue
Block a user