@cryptotaxi247 / infra / commits / 16ab07eb

nixos-channel-scripts: fix disambiguation logic

Previously it would error out if any subtype had multiple files that were not disambiguated instead of just the subtype we were interested in.

Martin Weinelt committed Jul 8, 2026 at 17:50 UTC 16ab07eb3c46e1f537a24183e15d14212e495e3d
1 file changed +3
pkgs/nixos-channel-scripts/mirror-nixos-branch.pl
+3
@@ -166,6 +166,9 @@ if ($bucketReleases && $bucketReleases->head_key("$releasePrefix")) {
166 my $product = $buildInfo->{buildproducts}->{$key};
167 my $subType = $product->{subtype};
168
169 + next if defined $productType
170 + && $subType ne $productType;
171 +
172 next if defined $productPattern
173 && $product->{path} !~ /$productPattern/;
174