From 397d1d67402f70d1fd263ca765abf3460b6f36ea Mon Sep 17 00:00:00 2001 From: Gustavo De Nardin Date: Wed, 6 Jun 2007 19:04:42 +0000 Subject: prevent old debug packages leftover by rpmctl from determining the guessed section for non debug packages --- lib/Youri/Repository/Mandriva_upload.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- cgit v1.2.1