From 903c7c7b9e19729e882a334f96a3a4579c0083ad Mon Sep 17 00:00:00 2001 From: Mustitz Date: Fri, 11 Jun 2021 16:09:18 +0000 Subject: [PATCH] Fix success value The sync_func may return True on success in the following cases: 1) kit.checkout returns boolean value; 2) the same SHA1 and desired SHA1 hashes. --- modules/sync.ego | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/sync.ego b/modules/sync.ego index 789c800..88b8cdd 100644 --- a/modules/sync.ego +++ b/modules/sync.ego @@ -319,7 +319,7 @@ priority = %s else: retval = sync_func() we_synced = True - if retval not in [ 0, 256]: + if retval not in [ 0, 256, True]: we_synced_successfully = False self.kits_retval["fails"].append((kt, branch, retval)) if success: