fix overzealous filetype search

This commit is contained in:
Louis Abel 2022-11-20 13:46:27 -07:00
parent 3849c6fcdf
commit a9560a5150
Signed by: label
GPG Key ID: B37E62D143879B36
3 changed files with 12 additions and 2 deletions

View File

@ -92,8 +92,13 @@
Container:
format: tar.xz
variants: [Base, Minimal, UBI]
RPI:
format: raw.xz
OCP:
format: qcow2
Vagrant:
format: box
variants: [Libvirt, Vbox, VMware]
livemap:
git_repo: 'https://git.resf.org/sig_core/kickstarts.git'
branch: 'r9-beta'

View File

@ -92,8 +92,13 @@
Container:
format: tar.xz
variants: [Base, Minimal, UBI]
RPI:
format: raw.xz
OCP:
format: qcow2
Vagrant:
format: box
variants: [Libvirt, Vbox, VMware]
livemap:
git_repo: 'https://git.resf.org/sig_core/kickstarts.git'
branch: 'r9lh'

View File

@ -579,7 +579,7 @@ class Shared:
while True:
for y in objs:
key = y['Key']
if filetype in key and release in key and name in key:
if key.endswith(filetype) and release in key and name in key:
temp.append(y['Key'])
next_token = res.get("NextContinuationToken", None)
if next_token:
@ -640,7 +640,7 @@ class Shared:
resp = xmltodict.parse(bucket_data.content)
for y in resp['ListBucketResult']['Contents']:
if filetype in y['Key'] and release in y['Key'] and name in y['Key']:
if y['Key'].endswith(filetype) and release in y['Key'] and name in y['Key']:
temp.append(y['Key'])
for arch in arches: