[jhalfs] branch trunk updated: BLFS: allow for more than 1000 packages

"Git Owner" ([email protected] via alfs-discuss Mailing List) <[email protected]> Sun, 26 Apr 2026 07:58:59 +0000
Newsgroups gmane.linux.lfs.automated
Message-ID <177719033971.19449.10365123793320144350@rivendell.linuxfromscratch.org>
This is a multi-part message in MIME format...

------------=_1777190349-19661-26335
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 fa6122f  BLFS: allow for more than 1000 packages
fa6122f is described below

commit fa6122fa3c33fb6ff81520b6f722518361b67215
Author: Pierre Labastie <[email protected]>
AuthorDate: Sun Apr 26 09:53:07 2026 +0200

    BLFS: allow for more than 1000 packages
    
    - add a digit to file names
    - increase the max recursion for generating the xml book
      (the list passed as parameter is treated with a recursive
      template)
---
 BLFS/gen_pkg_book.sh | 1 +
 BLFS/xsl/scripts.xsl | 6 +++++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/BLFS/gen_pkg_book.sh b/BLFS/gen_pkg_book.sh
index de14a10..8ba382d 100755
--- a/BLFS/gen_pkg_book.sh
+++ b/BLFS/gen_pkg_book.sh
@@ -250,6 +250,7 @@ echo Making XML book
 xsltproc --stringparam list    "$LIST"        \
          --stringparam MTA     "$MAIL_SERVER" \
          --stringparam lfsbook "$LFS_FULL"    \
+	 --maxdepth 5000
          -o ${BookXml} \
          ${MakeBook} \
          $BLFS_FULL
diff --git a/BLFS/xsl/scripts.xsl b/BLFS/xsl/scripts.xsl
index c501cc9..17a9fd2 100644
--- a/BLFS/xsl/scripts.xsl
+++ b/BLFS/xsl/scripts.xsl
@@ -107,10 +107,14 @@ done</xsl:variable>
     <xsl:variable name="order">
       <xsl:choose>
         <xsl:when test="string-length($position) = 1">
-          <xsl:text>00</xsl:text>
+          <xsl:text>000</xsl:text>
           <xsl:value-of select="$position"/>
         </xsl:when>
         <xsl:when test="string-length($position) = 2">
+          <xsl:text>00</xsl:text>
+          <xsl:value-of select="$position"/>
+        </xsl:when>
+        <xsl:when test="string-length($position) = 3">
           <xsl:text>0</xsl:text>
           <xsl:value-of select="$position"/>
         </xsl:when>

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

------------=_1777190349-19661-26335
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
------------=_1777190349-19661-26335--