From df998b53ac2b7f778704a235a32538f6d6f7e045 Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Sun, 31 Jan 2021 02:01:04 +0700 Subject: Fix nightly build links and make them public. --- scripts/list-nightly-builds.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/list-nightly-builds.py b/scripts/list-nightly-builds.py index 6de4058..042fd29 100755 --- a/scripts/list-nightly-builds.py +++ b/scripts/list-nightly-builds.py @@ -21,7 +21,7 @@ bucket = os.getenv("SNAPSHOTS_BUCKET") def make_link(s, f): f = re.sub(r'\s+', '+', f) - return "https://s3.amazonaws.com/{0}/{1}".format(bucket, f) + return "https://s3.amazonaws.com/{0}/rolling/{1}".format(bucket, f) def compare(l, r): try: @@ -48,6 +48,7 @@ for f in data: file_names = list(set(map(lambda s: re.sub(r'rolling/(.*?)', r'\1', s), files))) file_names.sort(reverse=True, key=cmp_to_key(compare)) +file_names.remove('vyos-rolling-latest.iso') builds = [] @@ -60,10 +61,11 @@ for name in file_names: tmpl = jinja2.Template(""" """) -print(tmpl.render(builds=builds)) +print(tmpl.render(latest=make_link('rolling', 'vyos-rolling-latest.iso'), builds=builds)) -- cgit v1.2.3