aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Youri
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Youri')
-rw-r--r--lib/Youri/Repository/Mageia_upload.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Youri/Repository/Mageia_upload.pm b/lib/Youri/Repository/Mageia_upload.pm
index 522f0e6..c2bad46 100644
--- a/lib/Youri/Repository/Mageia_upload.pm
+++ b/lib/Youri/Repository/Mageia_upload.pm
@@ -320,8 +320,9 @@ sub _get_section {
$section = $self->{packages}{$file}{section};
print "Section undefined, repository says it is '$section' for '$file'\n" if $self->{_verbose};
}
- if ($section && $section !~ /debug_/ && $package->is_debug()) {
- $section = "debug_$section"
+ # FIXME: use debug_for info
+ if ($section && $section !~ m|debug/| && $package->is_debug()) {
+ $section = "debug/$section"
}
# if have section already, check if it exists, and may return immediately