aboutsummaryrefslogtreecommitdiffstats
path: root/iurt2
diff options
context:
space:
mode:
authorFlorent Villard <warly@mandriva.com>2006-03-05 08:19:34 +0000
committerFlorent Villard <warly@mandriva.com>2006-03-05 08:19:34 +0000
commitafb4ff6f4335d6f23b035d18562ba9f523a239b7 (patch)
tree24504d5d2ea5578d53632ef2a8a9ac08bcb6d604 /iurt2
parenta5504a8c1878177972e2fe222dc08f6abea42451 (diff)
downloadiurt-afb4ff6f4335d6f23b035d18562ba9f523a239b7.tar
iurt-afb4ff6f4335d6f23b035d18562ba9f523a239b7.tar.gz
iurt-afb4ff6f4335d6f23b035d18562ba9f523a239b7.tar.bz2
iurt-afb4ff6f4335d6f23b035d18562ba9f523a239b7.tar.xz
iurt-afb4ff6f4335d6f23b035d18562ba9f523a239b7.zip
do not stop if the upload mode is not set and if the upload dir does not exist
Diffstat (limited to 'iurt2')
-rwxr-xr-xiurt22
1 files changed, 1 insertions, 1 deletions
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}/";