[WINESYNC] Properly handle the case when the file doesn't exist on ReactOS side

This commit is contained in:
Jérôme Gardou 2020-12-08 18:10:27 +01:00 committed by Jérôme Gardou
parent 5a47b6e97b
commit 81c312d3e0

View file

@ -187,7 +187,8 @@ class wine_sync:
if delta.status == pygit2.GIT_DELTA_DELETED:
self.reactos_index.remove(old_reactos_path)
else:
# here we check if the file exists. We don't complain, because applying the patch already failed anyway
elif os.path.isfile(os.path.join(self.reactos_src, new_reactos_path)):
self.reactos_index.add(new_reactos_path)
complete_patch += blob_patch.text