diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2017-07-08 20:11:23 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2017-07-08 20:11:23 +0100 |
commit | d49ec0833c03e428cc5a807331b389f1a70cab74 (patch) | |
tree | 44ffd605f0fe10d2f2c4a2953303a182a7e428df | |
parent | dd16a85d0df7e5b55a49b1c80aa769946f1ebb21 (diff) |
dgit: avoid dying with wrong message if compression fails
When dgit intended to report a decompressor had failed, it would
instead crash with no useful message. This was due to
generate_commits_from_dsc's @compr_cmd being shadowed inside
the if $compr_ext.
This is part of #857694.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
-rwxr-xr-x | dgit | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2181,7 +2181,7 @@ sub generate_commits_from_dsc () { if defined $compr_ext && !defined $cname; my $compr_proc = new Dpkg::Compression::Process compression => $cname; - my @compr_cmd = $compr_proc->get_uncompress_cmdline(); + @compr_cmd = $compr_proc->get_uncompress_cmdline(); my $compr_fh = new IO::Handle; my $compr_pid = open $compr_fh, "-|" // die $!; if (!$compr_pid) { |