From: Jacob Bachmeyer Date: Sat, 29 Oct 2022 03:06:24 +0000 (-0500) Subject: Remove temporary scaffolding X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=52647222f0794492853769bb2fa89474968e0418;p=gatekeeper.git Remove temporary scaffolding --- diff --git a/gatekeeper.pl b/gatekeeper.pl index 708f3b4..6ac1abc 100755 --- a/gatekeeper.pl +++ b/gatekeeper.pl @@ -1899,9 +1899,6 @@ sub validate_commands { my $stem = substr $packet->[0],0,-(length '.directive.asc'); my $op_header = $ops->[0][1]; - # scaffolding to be removed later - my $directive_only = (1 == scalar @$packet); - # They have to specify a version fatal("no version directive specified in $stem.directive.asc",1) unless defined $op_header->{version}; @@ -1920,7 +1917,7 @@ sub validate_commands { # Check that we actually have at least one command in the directive unless ($#$ops > 0) { - if ($directive_only) { + if (1 == scalar @$packet) { fatal("nothing to do - no commands in directive file",1); } else { # Provide a different message if this looks like an upload packet.