Ignore:
Timestamp:
02/27/2017 02:00:04 PM (8 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
new_features
Children:
6c9002b
Parents:
1cf1ad6
Message:

Invert the logic for downloading tarballs:

  • First upstream url
  • Second upstrem ftp
  • Last mirror server.

This allows to test whether upstream links are alive

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BLFS/xsl/scripts.xsl

    r1cf1ad6 red4f11f  
    223223    <xsl:value-of select="$varname"/>
    224224    <xsl:text>&#xA;  else&#xA;</xsl:text>
    225     <!-- The FTP_SERVER mirror -->
     225    <!-- Download from upstream http -->
     226    <xsl:if test="string-length($httpurl) &gt; 10">
     227      <xsl:text>    wget -T 30 -t 5 </xsl:text>
     228      <xsl:value-of select="$httpurl"/>
     229      <xsl:text> ||&#xA;</xsl:text>
     230    </xsl:if>
     231    <!-- Download from upstream ftp -->
     232    <xsl:if test="string-length($ftpurl) &gt; 10">
     233      <xsl:text>    wget -T 30 -t 5 </xsl:text>
     234      <xsl:value-of select="$ftpurl"/>
     235      <xsl:text> ||&#xA;</xsl:text>
     236    </xsl:if>
     237    <!-- The FTP_SERVER mirror as a last resort -->
    226238    <xsl:text>    wget -T 30 -t 5 ${FTP_SERVER}svn/</xsl:text>
    227239    <xsl:value-of select="$first_letter"/>
    228240    <xsl:text>/$</xsl:text>
    229241    <xsl:value-of select="$varname"/>
    230     <xsl:if test="string-length($httpurl) &gt; 10">
    231       <xsl:text> ||
    232     wget -T 30 -t 5 </xsl:text>
    233       <xsl:value-of select="$httpurl"/>
    234     </xsl:if>
    235     <xsl:if test="string-length($ftpurl) &gt; 10">
    236       <xsl:text> ||
    237     wget -T 30 -t 5 </xsl:text>
    238       <xsl:value-of select="$ftpurl"/>
    239     </xsl:if>
    240242    <xsl:text>
    241243    cp $</xsl:text>
Note: See TracChangeset for help on using the changeset viewer.