From c8ca6cd53805162d5c8722e9519815152c993a3c Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 13 Feb 2011 00:33:51 -0800 Subject: [PATCH] egencache: don't ignore as much with --tolerant Errors returned from --update-use-local-desc and --update-changelogs are no longer ignored with --tolerant. This will fix part of bug #354687. --- bin/egencache | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bin/egencache b/bin/egencache index 76dd900e7..89d2fdec4 100755 --- a/bin/egencache +++ b/bin/egencache @@ -791,7 +791,10 @@ def egencache_main(args): max_load=options.load_average, rsync=options.rsync) gen_cache.run() - ret.append(gen_cache.returncode) + if options.tolerant: + ret.append(os.EX_OK) + else: + ret.append(gen_cache.returncode) if options.update_use_local_desc: gen_desc = GenUseLocalDesc(portdb, @@ -805,8 +808,6 @@ def egencache_main(args): gen_clogs.run() ret.append(gen_clogs.returncode) - if options.tolerant: - return ret[0] return max(ret) if __name__ == "__main__": -- 2.26.2