Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions nix-channels.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@ def clone_channels():

# Examples:
#
# Released on yyyy-mm-dd hh:mm UTC from Git commit ...
# Released on yyyy-mm-dd hh:mm from ...
# Released on yyyy-mm-dd hh:mm:ss UTC from Git commit ...
# Released on yyyy-mm-dd hh:mm:ss from ...
tagline_res = re.match(r'^Released on (.+?) (?:UTC )?from', tagline)

if tagline_res is None:
Expand Down Expand Up @@ -389,7 +389,7 @@ def garbage_collect():

channel = release.name.split('@')[0]
date_str = (release / '.released-time').read_text()
date_match = re.match(r'\d+-\d+-\d+ \d+:\d+', date_str)
date_match = re.match(r'\d+-\d+-\d+ \d+:\d+:\d+', date_str)
assert date_match is not None, f'Release {release!r} has invalid time {date_str!r}'
date_str = date_match[0]
released_date = datetime.strptime(date_str, '%Y-%m-%d %H:%M:%S')
Expand Down