Skip to content

Commit

Permalink
scripts/auto-bootstraps/analyse_result: detect recent snapshot names
Browse files Browse the repository at this point in the history
Signed-off-by: Fabian Groffen <[email protected]>
  • Loading branch information
grobian committed Feb 5, 2024
1 parent e4dfe7e commit 99a5383
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/auto-bootstraps/analyse_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ def analyse_arch(d):
if 'Fetching ' in x:
if 'portage-latest.tar.bz2' in x:
snapshot = 'latest'
elif 'prefix-overlay-' in x:
snapshot = re.split('[-.]', x)[2]
elif re.search(r'(prefix-overlay|portage)-\d{8}\.tar\.bz2', x) is not None:
snapshot = x.split('.')[0].split('-')[-1]
elif 'total size is' in x:
snapshot = 'rsync'
elif 'Darwin with GCC toolchain' in x:
Expand Down

0 comments on commit 99a5383

Please sign in to comment.