Mercurial > octave
changeset 30115:3915633fdfd0
unpack.m: Fix to support old and new versions of gzip (bug #43206).
* unpack.m (__parse_gzip__): Change regular expression to support old
and new versions of gzip.
author | Rik <rik@octave.org> |
---|---|
date | Sun, 05 Sep 2021 14:20:54 -0700 |
parents | b0af792466dc |
children | 815b5b7bb672 |
files | scripts/miscellaneous/unpack.m |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/miscellaneous/unpack.m Thu Sep 02 20:48:47 2021 -0700 +++ b/scripts/miscellaneous/unpack.m Sun Sep 05 14:20:54 2021 -0700 @@ -328,7 +328,7 @@ ## Parse the output from gzip and gunzip returning the files ## compressed (or decompressed). - files = regexprep (output, '^.+ -- created (.*)$', '$1'); + files = regexprep (output, '^.+ -- (?:created|replaced with) (.*)$', '$1'); endfunction function files = __parse_bzip2__ (output)