From: Ian Jackson Date: Fri, 5 Jul 2019 15:44:30 +0000 (+0100) Subject: dgit-repos-server: Prepare for modes which take arguments X-Git-Tag: archive/debian/9.1~79 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=f78fc122ea55be9cac0be8a15bab02e9b7549d41;hp=ca8674c84bed3c19ea59978dca4530d85332de18;p=dgit.git 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 --- 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+)$/;