From dfa3575fa50b140623199b492b02fb2bdf8d2bb4 Mon Sep 17 00:00:00 2001 From: dramforever Date: Tue, 24 Dec 2019 17:21:02 +0800 Subject: [PATCH] nix-chanels: add some comments --- nix-channels.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nix-channels.py b/nix-channels.py index 7c3ffb3..6afedd0 100644 --- a/nix-channels.py +++ b/nix-channels.py @@ -149,6 +149,7 @@ def clone_channels(): for channel, chan_updated in get_links(f'{UPSTREAM_URL}/'): chan_path = working_dir / channel + # Old channels, little value in cloning and format changes if datetime.strptime(chan_updated, '%Y-%m-%d %H:%M') < CLONE_SINCE: continue @@ -264,6 +265,8 @@ def update_channels(channels): logging.info(f' - {len(paths)} paths listed') + # xargs can splits up the argument lists and invokes nix copy multiple + # times to avoid E2BIG (Argument list too long) nix_process = subprocess.Popen( [ 'xargs', 'nix', 'copy', '--from', upstream_binary_cache,