From: Ian Jackson Date: Sun, 7 Jan 2018 23:10:04 +0000 (+0000) Subject: dgit: archive-api-query: Avoid crashing due to lack of $isuite X-Git-Tag: archive/debian/4.3~6 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=ef2804f8817f5d2771caa1c70a9ebe4591268099;hp=23e56c29bdbca9862d483b3551b107cd9a25c648;p=dgit.git dgit: archive-api-query: Avoid crashing due to lack of $isuite Otherwise: Use of uninitialized value $isuite in concatenation (.) or string at dgit line 705. This breaks the infrastructure. Closes:#886592. Signed-off-by: Ian Jackson --- diff --git a/debian/changelog b/debian/changelog index 8d561885..6bac07b7 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,8 @@ dgit (4.3~) unstable; urgency=medium - * + Bugfixes: + * dgit archive-api-query: Avoid crashing due to lack of $isuite. + This breaks the infrastructure. Closes:#886592. -- diff --git a/dgit b/dgit index e86e3983..27dcf1c9 100755 --- a/dgit +++ b/dgit @@ -6456,6 +6456,7 @@ sub pre_archive_api_query () { sub cmd_archive_api_query { badusage "need only 1 subpath argument" unless @ARGV==1; my ($subpath) = @ARGV; + local $isuite = 'DGIT-API-QUERY-CMD'; my @cmd = archive_api_query_cmd($subpath); push @cmd, qw(-f); debugcmd ">",@cmd;