Skip to content

Commit 09b1391

Browse files
committed
fix 1
1 parent c9f0bc9 commit 09b1391

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fixed OS and architecture filters being silently ignored when filtering manifest lists in the flatpak index.

pulp_container/app/registry_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -568,9 +568,9 @@ def recurse_through_manifest_lists(self, tag, manifest, oss, architectures, mani
568568
elif manifest.media_type in (models.MEDIA_TYPE.MANIFEST_LIST, models.MEDIA_TYPE.INDEX_OCI):
569569
mlms = manifest.listed_manifests.through.objects.filter(image_manifest__pk=manifest.pk)
570570
if oss:
571-
mlms.filter(os__in=oss)
571+
mlms = mlms.filter(os__in=oss)
572572
if architectures:
573-
mlms.filter(architecture__in=architectures)
573+
mlms = mlms.filter(architecture__in=architectures)
574574
for mlm in mlms:
575575
self.recurse_through_manifest_lists(
576576
tag, mlm.manifest_list, oss, architectures, manifests

0 commit comments

Comments
 (0)