mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-03-06 06:14:47 +00:00
Fixed wget-list.xsl to handle sourceforge downloads.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@7882 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
94428c3d47
commit
35c837b429
@ -1,8 +1,7 @@
|
|||||||
<?xml version='1.0' encoding='ISO-8859-1'?>
|
<?xml version='1.0' encoding='ISO-8859-1'?>
|
||||||
|
|
||||||
<!-- Create a list of upstream URLs for packages and patches to be used
|
<!-- Create a list of upstream URLs for packages and patches to be used
|
||||||
with wget.
|
with wget. -->
|
||||||
NOTE: there are several sourceforge URLs that don't work with wget. -->
|
|
||||||
|
|
||||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
version="1.0">
|
version="1.0">
|
||||||
@ -20,7 +19,14 @@
|
|||||||
<xsl:if test="(contains(@url, '.tar.') or contains(@url, '.tgz')
|
<xsl:if test="(contains(@url, '.tar.') or contains(@url, '.tgz')
|
||||||
or contains(@url, '.patch')) and
|
or contains(@url, '.patch')) and
|
||||||
not(ancestor-or-self::*/@condition = 'pdf')">
|
not(ancestor-or-self::*/@condition = 'pdf')">
|
||||||
<xsl:value-of select="@url"/>
|
<xsl:choose>
|
||||||
|
<xsl:when test="contains(@url,'?download')">
|
||||||
|
<xsl:value-of select="substring-before(@url,'?download')"/>
|
||||||
|
</xsl:when>
|
||||||
|
<xsl:otherwise>
|
||||||
|
<xsl:value-of select="@url"/>
|
||||||
|
</xsl:otherwise>
|
||||||
|
</xsl:choose>
|
||||||
<xsl:text>
</xsl:text>
|
<xsl:text>
</xsl:text>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
Loading…
Reference in New Issue
Block a user