Changeset 9c9775f for common/urls.xsl


Ignore:
Timestamp:
09/19/2007 04:50:48 PM (17 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
experimental
Children:
3778352
Parents:
0510381
Message:

Updated experimental branch to current trunk code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/urls.xsl

    r0510381 r9c9775f  
    1111  <xsl:param name="server">ftp://ftp.osuosl.org</xsl:param>
    1212
     13  <!-- The book family (lfs or clfs). Needed to use the proper FTP path. -->
     14  <xsl:param name="family">lfs</xsl:param>
     15
    1316  <!-- The libc model used for HLFS -->
    1417  <xsl:param name="model" select="glibc"/>
     18
     19  <!-- The kernel series used for HLFS -->
     20  <xsl:param name="kernel" select="2.6"/>
    1521
    1622  <xsl:template match="/">
     
    2430    <xsl:if test="(ancestor::varlistentry[@condition=$model]
    2531                  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
    2836                  not(ancestor-or-self::*/@condition = 'pdf')">
    2937      <!-- Extract the package name -->
     
    4351      </xsl:variable>
    4452      <xsl:variable name="dirname" select="substring-before($package2, '-0')"/>
    45       <!-- Write the upstream URLs, except the redirected ones -->
     53      <!-- Write the upstream URLs, fixing the redirected ones -->
    4654      <xsl:choose>
    4755        <xsl:when test="contains(@url,'?')">
    48           <xsl:text>dummy-url</xsl:text>
     56          <xsl:value-of select="substring-before(@url,'?')"/>
    4957        </xsl:when>
    5058        <xsl:otherwise>
     
    5563      <!-- Write FTP mirror URLs -->
    5664      <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>
    5868      <xsl:choose>
    5969        <!-- Fix some directories. Test against $dirname to be sure that we
     
    7888          <xsl:text>tcl/</xsl:text>
    7989        </xsl:when>
    80         <xsl:when test="contains($dirname, 'uClibc')">
     90        <xsl:when test="contains($package, 'uClibc')">
    8191          <xsl:text>uClibc/</xsl:text>
    8292        </xsl:when>
Note: See TracChangeset for help on using the changeset viewer.