Changeset 8dc4646


Ignore:
Timestamp:
03/16/2017 12:49:01 PM (7 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
2.4, ablfs-more, legacy, trunk
Children:
2cf28dc
Parents:
39dc04a
Message:

Merge new_features: Allows to retrieve package from SRC_ARCHIVE, in case it is not already there

and is in archive. This should not happen in normal operation, but may happen
in func_install_blfs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BLFS/xsl/scripts.xsl

    r39dc04a r8dc4646  
    222222    <xsl:text>&#xA;if [[ ! -f $</xsl:text>
    223223    <xsl:value-of select="$varname"/>
    224     <xsl:text> ]] ; then&#xA;</xsl:text>
    225     <!-- This whole code becomes obsolete because now, it is there or we
    226          download; keeping for now, and we may want to grab it from
    227          SRC_ARCHIVE when SRC_SUBDIRS is set...
    228     <xsl:text>  if [[ -f $SRC_ARCHIVE/$PKG_DIR/$</xsl:text>
    229     <xsl:value-of select="$varname"/>
    230     <xsl:text> ]] ; then&#xA;</xsl:text>
    231     <xsl:text>    cp $SRC_ARCHIVE/$PKG_DIR/$</xsl:text>
    232     <xsl:value-of select="$varname"/>
    233     <xsl:text> $</xsl:text>
    234     <xsl:value-of select="$varname"/>
    235     <xsl:text>&#xA;</xsl:text>
    236     <xsl:text>  elif [[ -f $SRC_ARCHIVE/$</xsl:text>
     224    <xsl:text> ]] ; then
     225  if [[ -f $SRC_ARCHIVE/$</xsl:text>
    237226    <xsl:value-of select="$varname"/>
    238227    <xsl:text> ]] ; then&#xA;</xsl:text>
     
    241230    <xsl:text> $</xsl:text>
    242231    <xsl:value-of select="$varname"/>
    243     <xsl:text>&#xA;  else&#xA;</xsl:text> -->
     232    <xsl:text>
     233  else&#xA;</xsl:text>
    244234    <!-- Download from upstream http -->
    245235    <xsl:if test="string-length($httpurl) &gt; 10">
    246       <xsl:text>  wget -T 30 -t 5 </xsl:text>
     236      <xsl:text>    wget -T 30 -t 5 </xsl:text>
    247237      <xsl:value-of select="$httpurl"/>
    248238      <xsl:text> ||&#xA;</xsl:text>
     
    250240    <!-- Download from upstream ftp -->
    251241    <xsl:if test="string-length($ftpurl) &gt; 10">
    252       <xsl:text>  wget -T 30 -t 5 </xsl:text>
     242      <xsl:text>    wget -T 30 -t 5 </xsl:text>
    253243      <xsl:value-of select="$ftpurl"/>
    254244      <xsl:text> ||&#xA;</xsl:text>
    255245    </xsl:if>
    256246    <!-- The FTP_SERVER mirror as a last resort -->
    257     <xsl:text>  wget -T 30 -t 5 ${FTP_SERVER}svn/</xsl:text>
     247    <xsl:text>    wget -T 30 -t 5 ${FTP_SERVER}svn/</xsl:text>
    258248    <xsl:value-of select="$first_letter"/>
    259249    <xsl:text>/$</xsl:text>
    260250    <xsl:value-of select="$varname"/>
    261     <xsl:text>
    262 <!--    cp $</xsl:text>
    263     <xsl:value-of select="$varname"/>
    264     <xsl:text> $SRC_ARCHIVE
    265   fi-->
     251    <xsl:text><!--
     252    cp $</xsl:text>
     253    <xsl:value-of select="$varname"/>
     254    <xsl:text> $SRC_ARCHIVE-->
     255  fi
    266256fi
    267257</xsl:text>
     
    277267     be there-->
    278268    <xsl:if test="string($varname) != 'PACKAGE'">
    279       <xsl:text>
    280 [[ "$SRC_DIR" != "$BUILD_DIR" ]] &amp;&amp; ln -sf $SRC_DIR/$</xsl:text>
     269      <xsl:text>[[ "$SRC_DIR" != "$BUILD_DIR" ]] &amp;&amp; ln -sf $SRC_DIR/$</xsl:text>
    281270      <xsl:value-of select="$varname"/>
    282271      <xsl:text> $BUILD_DIR
Note: See TracChangeset for help on using the changeset viewer.