From 1ba78fa3fcdc29de500475247511b633f0e80aec Mon Sep 17 00:00:00 2001 From: dramforever Date: Wed, 27 Mar 2019 10:24:11 +0800 Subject: [PATCH] nixos-images: match 'beta' instead of isalpha --- nixos-images.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos-images.py b/nixos-images.py index 05c35a7..9403876 100755 --- a/nixos-images.py +++ b/nixos-images.py @@ -174,8 +174,8 @@ 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(): + # ^-------------^ + if chan_release_basename.startswith(channel + 'beta'): logging.info(f' - Beta channel, not updating') continue