aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/Youri/Repository/Mandriva_upload.pm6
1 files changed, 5 insertions, 1 deletions
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?