aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/Youri/Repository/Mandriva_upload.pm2
-rw-r--r--lib/Youri/Upload/Check/Version.pm2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Youri/Repository/Mandriva_upload.pm b/lib/Youri/Repository/Mandriva_upload.pm
index db36f2d..41d1b8d 100644
--- a/lib/Youri/Repository/Mandriva_upload.pm
+++ b/lib/Youri/Repository/Mandriva_upload.pm
@@ -218,7 +218,7 @@ sub _get_section {
if (!$section) {
$section = $package->_get_section()
}
- if ($package->is_debug()) {
+ if ($section && $section !~ /debug_/ && $package->is_debug()) {
$section = "debug_$section"
}
diff --git a/lib/Youri/Upload/Check/Version.pm b/lib/Youri/Upload/Check/Version.pm
index 42dfe41..8042e9f 100644
--- a/lib/Youri/Upload/Check/Version.pm
+++ b/lib/Youri/Upload/Check/Version.pm
@@ -35,7 +35,7 @@ sub run {
my $section = $repository->_get_section($package, $target, $define);
return 1 if $section =~ /$self->{_authorized_sections}/;
- my $name = $package->get_name;
+ my $name = $package->get_canonical_name;
return 1 if $name =~ /$self->{_authorized_packages}/;
my @revisions = $repository->get_revisions($package, $target, $define, sub { $package->get_version ne $_[0]->get_version });
if (@revisions) {