From afb4ff6f4335d6f23b035d18562ba9f523a239b7 Mon Sep 17 00:00:00 2001 From: Florent Villard Date: Sun, 5 Mar 2006 08:19:34 +0000 Subject: do not stop if the upload mode is not set and if the upload dir does not exist --- iurt2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'iurt2') diff --git a/iurt2 b/iurt2 index 246074f..f02e34d 100755 --- a/iurt2 +++ b/iurt2 @@ -237,7 +237,7 @@ if ($run{distro} ne 'cooker') { $config->{upload} =~ s/cooker/contrib/g; } --d $config->{upload} or usage($program_name, \@params, "$config->{upload} does not exist"); +if ($run{upload} && !-d $config->{upload}) { usage($program_name, \@params, "$config->{upload} does not exist") } if (!$run{debug} && $run{media} || $run{chroot}) { $run{pidfile_home} = "$config->{cache_home}/"; -- cgit v1.2.1