From 45f0437fcf415f42574bd43b51e394f4f0589973 Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Tue, 28 Feb 2017 12:49:28 +0000 Subject: [PATCH] Merge rev 3890 from trunk: Fix Ed tarball download --- BLFS/xsl/scripts.xsl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/BLFS/xsl/scripts.xsl b/BLFS/xsl/scripts.xsl index 37d2c43..5c34a13 100644 --- a/BLFS/xsl/scripts.xsl +++ b/BLFS/xsl/scripts.xsl @@ -112,7 +112,11 @@ find . -maxdepth 1 -mindepth 1 -type d | xargs case $PACKAGE in *.tar.gz|*.tar.bz2|*.tar.xz|*.tgz|*.tar.lzma) tar -xvf $PACKAGE > unpacked - UNPACKDIR=`grep '[^./]\+' unpacked | head -n1 | sed 's@^./@@;s@/.*@@'` + UNPACKDIR=`grep '[^./]\+' unpacked | head -n1 | sed 's@^\./@@;s@/.*@@'` + ;; + *.tar.lz) + bsdtar -xvf $PACKAGE 2> unpacked + UNPACKDIR=`head -n1 unpacked | cut -d" " -f2 | sed 's@^\./@@;s@/.*@@'` ;; *.zip) zipinfo -1 $PACKAGE > unpacked