Changeset 54380e5


Ignore:
Timestamp:
03/16/2017 12:45:11 PM (7 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
new_features
Children:
fc0802b
Parents:
50618eeb
Message:

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

    r50618eeb r54380e5  
    229229    <xsl:text>&#xA;if [[ ! -f $</xsl:text>
    230230    <xsl:value-of select="$varname"/>
    231     <xsl:text> ]] ; then&#xA;</xsl:text>
    232     <!-- This whole code becomes obsolete because now, it is there or we
    233          download; keeping for now, and we may want to grab it from
    234          SRC_ARCHIVE when SRC_SUBDIRS is set...
    235     <xsl:text>  if [[ -f $SRC_ARCHIVE/$PKG_DIR/$</xsl:text>
    236     <xsl:value-of select="$varname"/>
    237     <xsl:text> ]] ; then&#xA;</xsl:text>
    238     <xsl:text>    cp $SRC_ARCHIVE/$PKG_DIR/$</xsl:text>
    239     <xsl:value-of select="$varname"/>
    240     <xsl:text> $</xsl:text>
    241     <xsl:value-of select="$varname"/>
    242     <xsl:text>&#xA;</xsl:text>
    243     <xsl:text>  elif [[ -f $SRC_ARCHIVE/$</xsl:text>
     231    <xsl:text> ]] ; then
     232  if [[ -f $SRC_ARCHIVE/$</xsl:text>
    244233    <xsl:value-of select="$varname"/>
    245234    <xsl:text> ]] ; then&#xA;</xsl:text>
     
    248237    <xsl:text> $</xsl:text>
    249238    <xsl:value-of select="$varname"/>
    250     <xsl:text>&#xA;  else&#xA;</xsl:text> -->
     239    <xsl:text>
     240  else&#xA;</xsl:text>
    251241    <!-- Download from upstream http -->
    252242    <xsl:if test="string-length($httpurl) &gt; 10">
    253       <xsl:text>  wget -T 30 -t 5 </xsl:text>
     243      <xsl:text>    wget -T 30 -t 5 </xsl:text>
    254244      <xsl:value-of select="$httpurl"/>
    255245      <xsl:text> ||&#xA;</xsl:text>
     
    257247    <!-- Download from upstream ftp -->
    258248    <xsl:if test="string-length($ftpurl) &gt; 10">
    259       <xsl:text>  wget -T 30 -t 5 </xsl:text>
     249      <xsl:text>    wget -T 30 -t 5 </xsl:text>
    260250      <xsl:value-of select="$ftpurl"/>
    261251      <xsl:text> ||&#xA;</xsl:text>
    262252    </xsl:if>
    263253    <!-- The FTP_SERVER mirror as a last resort -->
    264     <xsl:text>  wget -T 30 -t 5 ${FTP_SERVER}svn/</xsl:text>
     254    <xsl:text>    wget -T 30 -t 5 ${FTP_SERVER}svn/</xsl:text>
    265255    <xsl:value-of select="$first_letter"/>
    266256    <xsl:text>/$</xsl:text>
    267257    <xsl:value-of select="$varname"/>
    268     <xsl:text>
    269 <!--    cp $</xsl:text>
     258    <xsl:text><!--
     259    cp $</xsl:text>
    270260    <xsl:value-of select="$varname"/>
    271     <xsl:text> $SRC_ARCHIVE
    272   fi-->
     261    <xsl:text> $SRC_ARCHIVE-->
     262  fi
    273263fi
    274264</xsl:text>
     
    284274     be there-->
    285275    <xsl:if test="string($varname) != 'PACKAGE'">
    286       <xsl:text>
    287 [[ "$SRC_DIR" != "$BUILD_DIR" ]] &amp;&amp; ln -sf $SRC_DIR/$</xsl:text>
     276      <xsl:text>[[ "$SRC_DIR" != "$BUILD_DIR" ]] &amp;&amp; ln -sf $SRC_DIR/$</xsl:text>
    288277      <xsl:value-of select="$varname"/>
    289278      <xsl:text> $BUILD_DIR
Note: See TracChangeset for help on using the changeset viewer.