Changeset b9c5dc9 for BLFS


Ignore:
Timestamp:
02/29/2012 01:16:50 PM (12 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
ablfs
Children:
63e068c
Parents:
9d0e0eb
Message:

Change the code for downloading patches in scripts.xsl
Correct the ftp server usage whan downloading non package files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BLFS/xsl/scripts.xsl

    r9d0e0eb rb9c5dc9  
    221221            <xsl:value-of select="substring-before($sub-url,'?')"/>
    222222          </xsl:when>
    223 <!-- Should never happen
    224           <xsl:when test="contains($sub-url,'.patch')"/> -->
    225223          <xsl:otherwise>
    226224            <xsl:value-of select="$sub-url"/>
     
    322320    <xsl:choose>
    323321      <xsl:when test="contains(string(ulink/@url),'.patch')">
     322        <xsl:variable name="patch">
     323          <xsl:call-template name="package_name">
     324            <xsl:with-param name="url" select="ulink/@url"/>
     325          </xsl:call-template>
     326        </xsl:variable>
     327        <xsl:text>PATCH=</xsl:text>
     328        <xsl:value-of select="$patch"/>
     329        <xsl:text>&#xA;if [[ ! -f $PATCH ]] ; then&#xA;</xsl:text>
     330         <!-- SRC_ARCHIVE may have subdirectories or not -->
     331        <xsl:text>  if [[ -f $SRC_ARCHIVE/$PKG_DIR/$PATCH ]] ; then&#xA;</xsl:text>
     332        <xsl:text>    cp $SRC_ARCHIVE/$PKG_DIR/$PATCH $PATCH&#xA;</xsl:text>
     333        <xsl:text>  elif [[ -f $SRC_ARCHIVE/$PATCH ]] ; then&#xA;</xsl:text>
     334        <xsl:text>    cp $SRC_ARCHIVE/$PATCH $PATCH&#xA;  else&#xA;</xsl:text>
    324335        <xsl:text>wget -T 30 -t 5 </xsl:text>
    325336        <xsl:value-of select="ulink/@url"/>
    326337        <xsl:text>&#xA;</xsl:text>
     338        <xsl:text>&#xA;  fi&#xA;fi&#xA;</xsl:text>
    327339      </xsl:when>
    328340      <xsl:when test="ulink">
     
    347359          <xsl:text>    cp $SRC_ARCHIVE/$PACKAGE1 $PACKAGE1&#xA;  else&#xA;</xsl:text>
    348360          <!-- The FTP_SERVER mirror -->
    349           <xsl:text>    wget -T 30 -t 5 ${FTP_SERVER}blfs/svn/</xsl:text>
     361          <xsl:text>    wget -T 30 -t 5 ${FTP_SERVER}svn/</xsl:text>
    350362          <xsl:value-of select="$first_letter"/>
    351363          <xsl:text>/$PACKAGE1</xsl:text>
Note: See TracChangeset for help on using the changeset viewer.