From b7e0ca6ddb5afc30ff890cc8401a830536f4f870 Mon Sep 17 00:00:00 2001 From: dramforever Date: Wed, 27 Mar 2019 09:33:53 +0800 Subject: [PATCH] filter out beta channels --- nixos-images.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nixos-images.py b/nixos-images.py index 83129d9..05c35a7 100755 --- a/nixos-images.py +++ b/nixos-images.py @@ -173,6 +173,12 @@ def clone_images(): logging.info(f'- {channel} -> {chan_release_basename}') + # Matches nixos-19.03 -> nixos-19.03beta171840.23fd1394dc6 + # ^ + if chan_release_basename.lstrip(channel)[0].isalpha(): + logging.info(f' - Beta channel, not updating') + continue + chan_info = get_channel(chan_location) atomic_write_file(chan_path / '.released-time', chan_info['released_time'])