Changeset 9c9775f for common/urls.xsl
- Timestamp:
- 09/19/2007 04:50:48 PM (17 years ago)
- Branches:
- experimental
- Children:
- 3778352
- Parents:
- 0510381
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
common/urls.xsl
r0510381 r9c9775f 11 11 <xsl:param name="server">ftp://ftp.osuosl.org</xsl:param> 12 12 13 <!-- The book family (lfs or clfs). Needed to use the proper FTP path. --> 14 <xsl:param name="family">lfs</xsl:param> 15 13 16 <!-- The libc model used for HLFS --> 14 17 <xsl:param name="model" select="glibc"/> 18 19 <!-- The kernel series used for HLFS --> 20 <xsl:param name="kernel" select="2.6"/> 15 21 16 22 <xsl:template match="/"> … … 24 30 <xsl:if test="(ancestor::varlistentry[@condition=$model] 25 31 or not(ancestor::varlistentry[@condition])) and 26 (contains(@url, '.tar.') or contains(@url, '.tgz') 27 or contains(@url, '.patch')) and 32 (ancestor::varlistentry[@vendor=$kernel] 33 or not(ancestor::varlistentry[@vendor])) and 34 (contains(@url, '.bz2') or contains(@url, '.tar.gz') or 35 contains(@url, '.tgz') or contains(@url, '.patch')) and 28 36 not(ancestor-or-self::*/@condition = 'pdf')"> 29 37 <!-- Extract the package name --> … … 43 51 </xsl:variable> 44 52 <xsl:variable name="dirname" select="substring-before($package2, '-0')"/> 45 <!-- Write the upstream URLs, exceptthe redirected ones -->53 <!-- Write the upstream URLs, fixing the redirected ones --> 46 54 <xsl:choose> 47 55 <xsl:when test="contains(@url,'?')"> 48 <xsl: text>dummy-url</xsl:text>56 <xsl:value-of select="substring-before(@url,'?')"/> 49 57 </xsl:when> 50 58 <xsl:otherwise> … … 55 63 <!-- Write FTP mirror URLs --> 56 64 <xsl:value-of select="$server"/> 57 <xsl:text>/pub/lfs/conglomeration/</xsl:text> 65 <xsl:text>/pub/</xsl:text> 66 <xsl:value-of select="$family"/> 67 <xsl:text>/conglomeration/</xsl:text> 58 68 <xsl:choose> 59 69 <!-- Fix some directories. Test against $dirname to be sure that we … … 78 88 <xsl:text>tcl/</xsl:text> 79 89 </xsl:when> 80 <xsl:when test="contains($ dirname, 'uClibc')">90 <xsl:when test="contains($package, 'uClibc')"> 81 91 <xsl:text>uClibc/</xsl:text> 82 92 </xsl:when>
Note:
See TracChangeset
for help on using the changeset viewer.