From 2b70058e901d15c18c74d7f6606dab40813a92d2 Mon Sep 17 00:00:00 2001 From: Gustavo De Nardin Date: Wed, 24 Oct 2007 19:11:58 +0000 Subject: - put some light into _get_section() obscurity --- lib/Youri/Repository/Mandriva_upload.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/Youri/Repository/Mandriva_upload.pm b/lib/Youri/Repository/Mandriva_upload.pm index 9751121..5ee4640 100644 --- a/lib/Youri/Repository/Mandriva_upload.pm +++ b/lib/Youri/Repository/Mandriva_upload.pm @@ -353,7 +353,9 @@ sub _get_section { $arch ); - # first try to find section for the specific version, as it is possibly already there + # first try to find section for the specific version, as it is possibly already there; + # this is the case for when called in Youri::Submit::Action::Archive, to find the + # section the package got installed print "Looking for package $name with version $version-$release\n"; foreach my $m (keys %{$media->{$arch}}) { print " .. section '$m' path '".$media->{$arch}{$m}."'\n" if $self->{_verbose}; @@ -374,6 +376,8 @@ sub _get_section { # /release subsection (safe default: /release is default for cooker, # should be locked for released distros, and we don't risk wrongly # choosing /backports, /testing, or /updates); + # this is the case for when called at submit, to find the section where + # the package already resides if (!$section) { # debug packages should be found by previous specific version search # NOTE: as above, should/need we search here and add the 'debug_' prefix? -- cgit v1.2.1