https://git.reactos.org/?p=reactos.git;a=commitdiff;h=81c312d3e041671c89d85…
commit 81c312d3e041671c89d85f92cfeb8e8f15e0e4f6
Author: Jérôme Gardou <jerome.gardou(a)reactos.org>
AuthorDate: Tue Dec 8 18:10:27 2020 +0100
Commit: Jérôme Gardou <zefklop(a)users.noreply.github.com>
CommitDate: Tue Jan 5 11:03:13 2021 +0100
[WINESYNC] Properly handle the case when the file doesn't exist on ReactOS side
---
sdk/tools/winesync/winesync.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/sdk/tools/winesync/winesync.py b/sdk/tools/winesync/winesync.py
index a890e2a773f..69f31601490 100644
--- a/sdk/tools/winesync/winesync.py
+++ b/sdk/tools/winesync/winesync.py
@@ -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