[jhalfs] 01/02: Don't download any <ulink> in chapter 3

"Git Owner" ([email protected] via alfs-discuss Mailing List) <[email protected]> Thu, 18 Sep 2025 12:37:26 +0000
Newsgroups gmane.linux.lfs.automated
Message-ID <[email protected]>
This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch trunk
in repository jhalfs.

commit d9e80918f413c6861f8e4e9c4e66596aa7bb6006
Author: Pierre Labastie <[email protected]>
AuthorDate: Thu Sep 18 14:21:12 2025 +0200

    Don't download any <ulink> in chapter 3
    
    Recently, there was a note added to the linux kernel informations,
    explaining how to use a base tarball + patch to extract the build
    tree of the kernel. This note uses <ulink> tags in examples. But
    our "urls.xsl" stylesheet considers any <ulink> descendant of a
    <varlistentry> is a file to be downloaded, and should be followed
    by a valid mds sum. The lack of valid md5 sum is what triggers
    an error, actually.
    We fix this by assuming that any varlistentry/listitem/para/ulink
    is a valid url to download (that is, we refine the path search).
    
    Fix error reported by Marcin Dulak in
    https://lists.linuxfromscratch.org/sympa/arc/lfs-support/2025-09/msg00018.html
    and
    https://lists.linuxfromscratch.org/sympa/arc/alfs-discuss/2025-09/msg00002.html
---
 common/urls.xsl | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/common/urls.xsl b/common/urls.xsl
index 185f07d..8728cf3 100644
--- a/common/urls.xsl
+++ b/common/urls.xsl
@@ -12,8 +12,9 @@
   <xsl:param name="revision" select="'sysv'"/>
 
   <xsl:template match="/">
-    <xsl:apply-templates select="//varlistentry[@revision=$revision
-                                                or not(@revision)]//ulink"/>
+    <xsl:apply-templates
+      select="//varlistentry[@revision=$revision
+                             or not(@revision)]/listitem/para/ulink"/>
     <xsl:if test="$pkgmngt='y'">
       <xsl:apply-templates
         select="document('packageManager.xml')//ulink"/>

-- 
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