[jhalfs] branch trunk updated: BLFS ordered book gen: fix for .xz Xorg packages

"Git Owner" ([email protected] via alfs-discuss Mailing List) <[email protected]>
Newsgroups gmane.linux.lfs.automated
Message-ID <163920595256.19161.10576687549605349385@rivendell.linuxfromscratch.org>
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 794f94f  BLFS ordered book gen: fix for .xz Xorg packages
794f94f is described below

commit 794f94f85e37150642ba41eba35c5688a0bb7b34
Author: Pierre Labastie <[email protected]>
AuthorDate: Sat Dec 11 07:50:56 2021 +0100

    BLFS ordered book gen: fix for .xz Xorg packages
    
    In Xorg pages where there are several packages, the .xsl for
    separating packages assumed that the package names ended in
    tar.bz2 and selected the substring before ".tar.bz2" to extract
    the packagedir. This has changed recently for libX11, which is a
    .tar.xz package: the fix is to just select the substring before
    ".tar." for the packagedir.
---
 BLFS/xsl/make_book.xsl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/BLFS/xsl/make_book.xsl b/BLFS/xsl/make_book.xsl
index e6f62a0..6e35b91 100644
--- a/BLFS/xsl/make_book.xsl
+++ b/BLFS/xsl/make_book.xsl
@@ -580,7 +580,7 @@
         </para>
 
         <screen><userinput>packagedir=<xsl:value-of
-                    select="substring-before($tarball,'.tar.bz2')"/>
+                    select="substring-before($tarball,'.tar.')"/>
           <xsl:text>&#xA;</xsl:text>
           <xsl:value-of select="substring-before($install-instructions,
                                                  'as_root')"/>

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

-- 
http://lists.linuxfromscratch.org/sympa/info/alfs-discuss
Unsubscribe: See the above information page
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.