X-Git-Url: https://git.exim.org/buildfarm-client.git/blobdiff_plain/9218d819b7570950ca7de64c8a482ffa376c0800..9f60e94c56760c45ba944b829901f07367cbb448:/run_branches diff --git a/run_branches b/run_branches index 7506a52..1ef72e5 100755 --- a/run_branches +++ b/run_branches @@ -40,7 +40,7 @@ my %CALLED = ( argv => [@ARGV], # get a copy! ); chdir $RealBin or die "$0: Can't chdir to '$RealBin': $!\n"; -say "Changed working directory to '$RealBin'" if -t; +#say "Changed working directory to '$RealBin'" if -t; my %branch_last; my $run_build = './run_build'; @@ -159,15 +159,12 @@ elsif ($EximBuild::conf{branches_to_build} =~ @branches = apply_throttle(@branches); -my $global_lock_dir = - $EximBuild::conf{global_lock_dir} - ||$EximBuild::conf{build_root} - ||''; +my $global_lock_dir = $EximBuild::conf{global_lock_dir} + // $EximBuild::conf{build_root} + // die "$0: need global_lock_dir\n"; -unless ($global_lock_dir && -d $global_lock_dir) -{ - die "no global lock directory: $global_lock_dir"; -} +die "$0: need r/w permissions for directory '$global_lock_dir'\n" + if not -d -w $global_lock_dir; # acquire the lock