nixos-images: match 'beta' instead of isalpha

This commit is contained in:
dramforever 2019-03-27 10:24:11 +08:00
parent b7e0ca6ddb
commit 1ba78fa3fc

View File

@ -174,8 +174,8 @@ def clone_images():
logging.info(f'- {channel} -> {chan_release_basename}') logging.info(f'- {channel} -> {chan_release_basename}')
# Matches nixos-19.03 -> nixos-19.03beta171840.23fd1394dc6 # 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') logging.info(f' - Beta channel, not updating')
continue continue