commit:     99a538389cc34a6b2466720c8d1925ee27bce5dc
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Mon Feb  5 11:53:49 2024 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Mon Feb  5 11:54:25 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=99a53838

scripts/auto-bootstraps/analyse_result: detect recent snapshot names

Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 scripts/auto-bootstraps/analyse_result.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/auto-bootstraps/analyse_result.py 
b/scripts/auto-bootstraps/analyse_result.py
index b12c849bbe..094462a1dc 100755
--- a/scripts/auto-bootstraps/analyse_result.py
+++ b/scripts/auto-bootstraps/analyse_result.py
@@ -188,8 +188,8 @@ with os.scandir(resultsdir) as it:
                         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:

Reply via email to