aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustavo De Nardin <spuk@mandriva.org>2007-10-24 19:11:58 +0000
committerGustavo De Nardin <spuk@mandriva.org>2007-10-24 19:11:58 +0000
commit2b70058e901d15c18c74d7f6606dab40813a92d2 (patch)
tree4b74d309e1652dd038d7aa8ef118c7ab2b3723ff
parent9640fbca731c010399162028f882d47b5ebc525c (diff)
downloadmga-youri-core-2b70058e901d15c18c74d7f6606dab40813a92d2.tar
mga-youri-core-2b70058e901d15c18c74d7f6606dab40813a92d2.tar.gz
mga-youri-core-2b70058e901d15c18c74d7f6606dab40813a92d2.tar.bz2
mga-youri-core-2b70058e901d15c18c74d7f6606dab40813a92d2.tar.xz
mga-youri-core-2b70058e901d15c18c74d7f6606dab40813a92d2.zip
- put some light into _get_section() obscurity
-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?