diff options
author | Daniil Baturin <daniil@baturin.org> | 2021-04-06 17:51:18 +0700 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2021-04-06 17:51:18 +0700 |
commit | 6adab62389815b7a49cae64103c59100ca4fad0e (patch) | |
tree | c34f1a53a3a6f89b14264222a897aa1388bb0831 | |
parent | 0a827418998039b10158e6f4a1b5db51bb00fced (diff) | |
download | community.vyos.net-6adab62389815b7a49cae64103c59100ca4fad0e.tar.gz community.vyos.net-6adab62389815b7a49cae64103c59100ca4fad0e.zip |
Fix link formatting for equuleus.
-rwxr-xr-x | scripts/list-nightly-builds.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/list-nightly-builds.py b/scripts/list-nightly-builds.py index 078b599..078f8cc 100755 --- a/scripts/list-nightly-builds.py +++ b/scripts/list-nightly-builds.py @@ -49,7 +49,8 @@ def list_image_files(bucket, prefix): return files def render_image_list(bucket, prefix, files): - file_names = list(set(map(lambda s: re.sub(r'rolling/current/(.*?)', r'\1', s), files))) + regex = prefix + r'/(.*?)' + file_names = list(set(map(lambda s: re.sub(regex, r'\1', s), files))) file_names.sort(reverse=True, key=cmp_to_key(compare)) builds = [] |