From 17b77481521eab1af426cd4e4b063031a6bef393 Mon Sep 17 00:00:00 2001 From: Marcelo Leitner Date: Thu, 1 Feb 2007 12:31:14 +0000 Subject: - Fix mdv-youri-submit-force: do not call get_files if we don't know the src path. (thus avoids find /) --- lib/Youri/Repository/Mandriva_upload.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Youri/Repository/Mandriva_upload.pm b/lib/Youri/Repository/Mandriva_upload.pm index 9573eab..73f7e96 100644 --- a/lib/Youri/Repository/Mandriva_upload.pm +++ b/lib/Youri/Repository/Mandriva_upload.pm @@ -298,11 +298,12 @@ sub _get_section { # do not use testing by default next if $m =~ /testing/; next unless + ($media->{src}{$m} && $self->get_files( '', $media->{src}{$m}, $source_pattern - ) || $self->get_files( + )) || $self->get_files( '', $media->{$arch}{$m}, $binary_pattern -- cgit v1.2.1