From 379488a5a3300dfbd9fe2b1899f17b3226a841f6 Mon Sep 17 00:00:00 2001
From: Zhang Wen <zhw2101024@gmail.com>
Date: Sun, 16 Feb 2025 00:56:35 +0800
Subject: [PATCH] replace zipinfo with bsdunzip
---
BLFS/xsl/scripts.xsl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/BLFS/xsl/scripts.xsl b/BLFS/xsl/scripts.xsl
index 0bf4348..fadeac9 100644
|
a
|
b
|
case $PACKAGE in
|
| 349 | 349 | JH_UNPACKDIR=`head -n1 unpacked | cut -d" " -f2 | sed 's@^\./@@;s@/.*@@'` |
| 350 | 350 | ;; |
| 351 | 351 | *.zip) |
| 352 | | zipinfo -1 $SRC_DIR/$PACKAGE > unpacked |
| | 352 | bsdtar --list -f $SRC_DIR/$PACKAGE > unpacked |
| 353 | 353 | JH_UNPACKDIR="$(sed 's@/.*@@' unpacked | uniq )" |
| 354 | 354 | if test $(wc -w <<< $JH_UNPACKDIR) -eq 1; then |
| 355 | 355 | unzip $SRC_DIR/$PACKAGE |