From: Jacob Bachmeyer Date: Fri, 21 Oct 2022 03:50:31 +0000 (-0500) Subject: Change return value of read_directive_file to operation list X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=1a2867beb0f077b3c6fe27c3fcf2dcae244ea5b4;p=gatekeeper.git Change return value of read_directive_file to operation list Previously, read_directive_file always returned zero or did not return. We now return an operation list that will eventually replace the global %info hash. --- diff --git a/gatekeeper.pl b/gatekeeper.pl index 2c186b5..ab9a30a 100755 --- a/gatekeeper.pl +++ b/gatekeeper.pl @@ -1690,7 +1690,7 @@ sub read_directive_file { fatal("gpg verification problem: could not extract timestamp",1); } - return 0; + return $ops; } sub automake_tests { @@ -2077,11 +2077,11 @@ foreach my $packet (@packets) { # each list element is an array reference } } # set up the %info variable - my $retval = read_directive_file ($directive_file, + my $oplist = read_directive_file ($directive_file, $upload_file, $directive_only); - if ($retval == 0) { + if ($oplist) { # do the work execute_commands({directive => $directive_file, upload => $upload_file, sig => $sig_file, directive_only => $directive_only},