From 1a2867beb0f077b3c6fe27c3fcf2dcae244ea5b4 Mon Sep 17 00:00:00 2001 From: Jacob Bachmeyer Date: Thu, 20 Oct 2022 22:50:31 -0500 Subject: [PATCH] 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. --- gatekeeper.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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}, -- 2.25.1