summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/list-nightly-builds.py3
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 = []