aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustavo De Nardin <spuk@mandriva.org>2007-06-06 19:04:42 +0000
committerGustavo De Nardin <spuk@mandriva.org>2007-06-06 19:04:42 +0000
commit397d1d67402f70d1fd263ca765abf3460b6f36ea (patch)
tree7656f19d241eaf1207cb2a299e1f006893c5a0cf
parent8df9d002c4e32b2d2ee477b567b120c8d5540243 (diff)
downloadmga-youri-core-397d1d67402f70d1fd263ca765abf3460b6f36ea.tar
mga-youri-core-397d1d67402f70d1fd263ca765abf3460b6f36ea.tar.gz
mga-youri-core-397d1d67402f70d1fd263ca765abf3460b6f36ea.tar.bz2
mga-youri-core-397d1d67402f70d1fd263ca765abf3460b6f36ea.tar.xz
mga-youri-core-397d1d67402f70d1fd263ca765abf3460b6f36ea.zip
prevent old debug packages leftover by rpmctl from determining the guessed
section for non debug packages
-rw-r--r--lib/Youri/Repository/Mandriva_upload.pm3
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);