support/download/hg: fix broken method
authorThomas De Schampheleire <thomas.de_schampheleire@nokia.com>
Tue, 27 Apr 2021 19:45:44 +0000 (21:45 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Wed, 28 Apr 2021 19:51:10 +0000 (21:51 +0200)
commit4d6c6b1bd411b1dcab2c50e3aa35da5755da790a
treef9e93332ea1bdfe699006081924b6e89adc2abc6
parentc5aedfe041569fed6ca7ffce943f3e3b8b024b61
support/download/hg: fix broken method

Commit 54d3d94b6e3846447b5796ef8587b08b537cd348 broke the 'hg' download
method, in a similar way as it broke the 'git' download method (later fixed
with commit b70ce5665126246bd6b6bf804c6d9eea1fc599cf), by introducing extra
output on stdout in a case where the output is redirected.

In the case of 'hg', the 'hg archive' step uses shell redirection rather
than directly letting hg write the output file, since commit
76b51f90c0e393349dd0c71d7e6cf82fbc094282.

As a result, the extra print added by the _hg function is prepended to the
actual archive, causing an invalid archive.

Fix by using the _plain_hg function instead. The disadvantage is that the
command for 'hg archive' is no longer printed.

Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
support/download/hg