From 46006f0141a41806e1f2fee8ea76758310ce17fa Mon Sep 17 00:00:00 2001 From: taoky Date: Mon, 11 Dec 2023 16:39:52 +0800 Subject: [PATCH] nix-channels: ignore error for buggy upstream packages Workaround for https://github.com/ustclug/discussions/issues/440. At the worst case (8191 * n) binary caches will not be downloaded if n packages are faulty. --- nix-channels/nix-channels.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nix-channels/nix-channels.py b/nix-channels/nix-channels.py index 329187a..6b791a0 100644 --- a/nix-channels/nix-channels.py +++ b/nix-channels/nix-channels.py @@ -308,9 +308,10 @@ def update_channels(channels): stdout=subprocess.PIPE ) if process.returncode != 0: - channel_failure = True logging.info(f' - Error status: {process.returncode}') - break + # ignore error for this batch: workaround https://github.com/ustclug/discussions/issues/440 + # channel_failure = True + # break else: infos = json.loads(process.stdout) for info in infos: