Skip to content

Commit

Permalink
nix-channels: ignore error for buggy upstream packages
Browse files Browse the repository at this point in the history
Workaround for ustclug/discussions#440.
At the worst case (8191 * n) binary caches will not be downloaded if n packages are faulty.
  • Loading branch information
taoky committed Dec 11, 2023
1 parent e6b5e26 commit 46006f0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nix-channels/nix-channels.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 46006f0

Please sign in to comment.