From f78fc122ea55be9cac0be8a15bab02e9b7549d41 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 5 Jul 2019 16:44:30 +0100 Subject: [PATCH] dgit-repos-server: Prepare for modes which take arguments Currently none do. Both the existing mode_ subroutines check @ARGV, so this has no overall change other than to error messages. Signed-off-by: Ian Jackson --- infra/dgit-repos-server | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infra/dgit-repos-server b/infra/dgit-repos-server index 61a4b173..2fa9090a 100755 --- a/infra/dgit-repos-server +++ b/infra/dgit-repos-server @@ -1155,7 +1155,7 @@ sub parseargsdispatch () { $ENV{"DGIT_DRS_\U$_"} = ${ $main::{$_} } foreach @hookenvs; - die unless @ARGV==1; + die unless @ARGV>=1; my $mode = shift @ARGV; die unless $mode =~ m/^--(\w+)$/; -- 2.30.2