[jhalfs] branch trunk updated: BLFS tools: use zipfile python module
git Owner ([email protected] via alfs-discuss Mailing List) <[email protected]> Tue, 21 Jul 2026 15:54:19 +0000
| Newsgroups | gmane.linux.lfs.automated |
|---|---|
| Message-ID | <178464925956.127273.13464162028266459972@rivendell.linuxfromscratch.org> |
This is a multi-part message in MIME format...
------------=_1784649263-127501-4983
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch trunk
in repository jhalfs.
The following commit(s) were added to refs/heads/trunk by this push:
new 476870c BLFS tools: use zipfile python module
476870c is described below
commit 476870cd636d37a80629decbcfd8743563261a67
Author: Pierre Labastie <[email protected]>
AuthorDate: Tue Jul 21 17:52:03 2026 +0200
BLFS tools: use zipfile python module
Editors now consider that a zip file can be extracted with this
module. So there is not always a dependency on libarchive for
such a file. We have to adapt jhalfs so that it uses this
module too instead of bsdtar.
---
BLFS/xsl/scripts.xsl | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/BLFS/xsl/scripts.xsl b/BLFS/xsl/scripts.xsl
index 03cbf0d..1f18792 100644
--- a/BLFS/xsl/scripts.xsl
+++ b/BLFS/xsl/scripts.xsl
@@ -1188,13 +1188,13 @@ case $PACKAGE in
JH_UNPACKDIR=`head -n1 unpacked | cut -d" " -f2 | sed 's@^\./@@;s@/.*@@'`
;;
*.zip)
- bsdtar --list -f $SRC_DIR/$PACKAGE > unpacked
+ python3 -m zipfile -l $SRC_DIR/$PACKAGE > unpacked
JH_UNPACKDIR="$(sed 's@/.*@@' unpacked | uniq )"
if test $(wc -w <<< $JH_UNPACKDIR) -eq 1; then
- unzip $SRC_DIR/$PACKAGE
+ python3 -m zipfile -e $SRC_DIR/$PACKAGE .
else
JH_UNPACKDIR=${PACKAGE%.zip}
- unzip -d $JH_UNPACKDIR $SRC_DIR/$PACKAGE
+ python3 -m zipfile -e $SRC_DIR/$PACKAGE $JH_UNPACKDIR
fi
;;
*)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
------------=_1784649263-127501-4983
Content-Type: text/plain; charset="UTF-8"
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
MIME-Version: 1.0
--
http://lists.linuxfromscratch.org/sympa/info/alfs-discuss
Unsubscribe: See the above information page
------------=_1784649263-127501-4983--