diff options
author | Gustavo De Nardin <spuk@mandriva.org> | 2007-06-06 19:04:42 +0000 |
---|---|---|
committer | Gustavo De Nardin <spuk@mandriva.org> | 2007-06-06 19:04:42 +0000 |
commit | 397d1d67402f70d1fd263ca765abf3460b6f36ea (patch) | |
tree | 7656f19d241eaf1207cb2a299e1f006893c5a0cf /lib/Youri/Repository | |
parent | 8df9d002c4e32b2d2ee477b567b120c8d5540243 (diff) | |
download | mga-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
Diffstat (limited to 'lib/Youri/Repository')
-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); |