Re: a patch to replace zipinfo with bsdunzip
"Ken Moffat" ([email protected] via alfs-discuss Mailing List) <[email protected]> Mon, 17 Feb 2025 23:30:29 +0000
| Newsgroups | gmane.linux.lfs.automated |
|---|---|
| Message-ID | <[email protected]> |
On Sun, Feb 16, 2025 at 12:49:42PM +0800, Zhang Wen wrote:
> Not sure if there's a better way to do this, it seems tricky to use
> awk and tail commands.
>
> diff --git a/BLFS/xsl/scripts.xsl b/BLFS/xsl/scripts.xsl
> index 0bf4348..825fde1 100644
> --- a/BLFS/xsl/scripts.xsl
> +++ b/BLFS/xsl/scripts.xsl
> @@ -349,7 +349,7 @@ case $PACKAGE in
> JH_UNPACKDIR=`head -n1 unpacked | cut -d" " -f2 | sed 's@^\./@@;s@/.*@@'`
> ;;
> *.zip)
> - zipinfo -1 $SRC_DIR/$PACKAGE > unpacked
> + bsdunzip -1 $SRC_DIR/$PACKAGE|awk '{print $4}'|tail -n +3 > unpacked
Should that not be -l (lowercase L) rather than -1 ?
I'm on an older version on this machine, apologies if -1 is now an
option.
ĸen
--
The three certainties in computing: BGP errors, DNS failures,
incorrect time/date functions, and off-by-one errors.
--
http://lists.linuxfromscratch.org/sympa/info/alfs-discuss
Unsubscribe: See the above information page