Subject: | Approving packages for "canonical" distributions fails |
Say that you have a builder for distribution "lenny" with an alias
"unstable". While approving packages targeted for "unstable" works,
approving packages for "lenny" actually fails.
The workaround is adding "lenny" to the distribution_aliases for that
builder, or apply the attached one-line patch.
Subject: | canonical-distribution-fix.patch |
Index: lib/Arepa/Web/App.pm
===================================================================
--- lib/Arepa/Web/App.pm (revision 12067)
+++ lib/Arepa/Web/App.pm (revision 12068)
@@ -371,7 +371,8 @@
foreach my $b (@builders) {
my %builder_cfg = $config->get_builder_config($b);
if (grep { $_ eq $distribution }
- @{$builder_cfg{distribution_aliases}}) {
+ @{$builder_cfg{distribution_aliases}},
+ $builder_cfg{distribution}) {
# There should be only one; if there's more than one, that's a
# problem
if ($builder) {