Skip to content

Commit eb55375

Browse files
committed
nix-channels: backport from tunasync-scripts.
tuna/tunasync-scripts#192
1 parent 50006ed commit eb55375

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nix-channels/nix-channels.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,8 @@ def clone_channels():
201201

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

208208
if tagline_res is None:
@@ -386,7 +386,7 @@ def garbage_collect():
386386
if not (release / 'binary-cache-url').exists(): continue
387387

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

0 commit comments

Comments
 (0)