diff options
Diffstat (limited to 'lib/Youri')
-rw-r--r-- | lib/Youri/Repository/Mandriva_upload.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Youri/Repository/Mandriva_upload.pm b/lib/Youri/Repository/Mandriva_upload.pm index b0dd95f..09a8352 100644 --- a/lib/Youri/Repository/Mandriva_upload.pm +++ b/lib/Youri/Repository/Mandriva_upload.pm @@ -375,7 +375,8 @@ sub _get_section { print "Warning: Looking for any section with a package $name of any version\n"; foreach my $m (keys %{$media->{$arch}}) { print " .. section '$m' path '".$media->{$arch}{$m}."'\n" if $self->{_verbose}; - next if $m !~ /release/; + # NOTE: !$package->is_debug() test is here to prevent when above FATAL error is removed + next if $m !~ /release/ || ($m =~ /debug/ && !$package->is_debug()); # - prefer source if ($media->{src}{$m}) { next unless $self->get_files('', $media->{src}{$m}, $source_pattern); |