[jhalfs] branch trunk updated: Fix downloading sqlite-doc
git Owner ([email protected] via alfs-discuss Mailing List) <[email protected]> Thu, 16 Jul 2026 06:01:48 +0000
| Newsgroups | gmane.linux.lfs.automated |
|---|---|
| Message-ID | <178418170855.3790025.983231370098869516@rivendell.linuxfromscratch.org> |
This is a multi-part message in MIME format...
------------=_1784181713-1024790-4367
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 76b01f6 Fix downloading sqlite-doc
76b01f6 is described below
commit 76b01f6cd30c712ac8e97f809ff3b0dd474df6b1
Author: Pierre Labastie <[email protected]>
AuthorDate: Wed Jul 15 18:48:45 2026 +0200
Fix downloading sqlite-doc
The urls.xsl stylesheet had a list of authorized patterns in
url names (such as tar.gz, etc), and this list did not contain
.zip. So the sqlite doc .zip file was not downloaded.
We change the criterium for using the url: it now must be in a
para that contains "Download" as text... I hope this will remain
the norm in chapter 3 "All Packages" and "All Patches" pages.
---
common/urls.xsl | 16 +++++++---------
1 file changed, 7 insertions(+), 9 deletions(-)
diff --git a/common/urls.xsl b/common/urls.xsl
index 8728cf3..248e2ba 100644
--- a/common/urls.xsl
+++ b/common/urls.xsl
@@ -13,8 +13,10 @@
<xsl:template match="/">
<xsl:apply-templates
- select="//varlistentry[@revision=$revision
- or not(@revision)]/listitem/para/ulink"/>
+ select="//varlistentry[@revision=$revision or not(@revision)]/
+ listitem/
+ para[contains(string(),'Download')]/
+ ulink"/>
<xsl:if test="$pkgmngt='y'">
<xsl:apply-templates
select="document('packageManager.xml')//ulink"/>
@@ -22,13 +24,9 @@
</xsl:template>
<xsl:template match="ulink">
- <!-- If some package doesn't have the predefined strings in their
- name, the next test must be fixed to match it also. Skip possible
- duplicated URLs due that may be splitted for PDF output -->
- <xsl:if test="(contains(@url, '.bz2') or contains(@url, '.tar.gz') or
- contains(@url, '.tgz') or contains(@url, '.patch') or
- contains(@url, '.xz') or contains(@url, '.lzma')) and
- not(ancestor-or-self::*/@condition = 'pdf')">
+ <!-- Skip possible duplicated URLs due that may be splitted for
+ PDF output -->
+ <xsl:if test="not(ancestor-or-self::*/@condition = 'pdf')">
<!-- Extract the package name -->
<xsl:variable name="package">
<xsl:call-template name="package.name">
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
------------=_1784181713-1024790-4367
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
------------=_1784181713-1024790-4367--