aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Labastie <pierre.labastie@neuf.fr>2023-11-21 10:12:28 +0100
committerPierre Labastie <pierre.labastie@neuf.fr>2023-11-21 10:12:28 +0100
commit05b955b62c1cf4afda76c08587303cd95e4eb4c6 (patch)
tree49590fa13a661cb15c333a72d1924abfeec3b293
parent23b0161d6c3d5c5f8eebbd31c56c5708fb4148ed (diff)
BLFS: remove support for ftp and alternate server
ftp urls have been removed from book, and in case you have to use an alternate server, better download directly to /sources/yourself.
-rw-r--r--BLFS/xsl/scripts.xsl25
1 files changed, 3 insertions, 22 deletions
diff --git a/BLFS/xsl/scripts.xsl b/BLFS/xsl/scripts.xsl
index be8a4db4b7..ad6612ad66 100644
--- a/BLFS/xsl/scripts.xsl
+++ b/BLFS/xsl/scripts.xsl
@@ -441,10 +441,6 @@ echo Start Time: ${SECONDS} >> $INFOLOG
</xsl:with-param>
</xsl:call-template>
</xsl:variable>
- <xsl:variable name="first_letter"
- select="translate(substring($package,1,1),
- 'ABCDEFGHIJKLMNOPQRSTUVWXYZ',
- 'abcdefghijklmnopqrstuvwxyz')"/>
<xsl:text>&#xA;</xsl:text>
<xsl:value-of select="$varname"/>
<xsl:text>=</xsl:text>
@@ -460,24 +456,9 @@ echo Start Time: ${SECONDS} >> $INFOLOG
<xsl:text>" "$</xsl:text>
<xsl:value-of select="$varname"/>
<xsl:text>"
- else&#xA;</xsl:text>
- <!-- Download from upstream http -->
- <xsl:if test="string-length($httpurl) &gt; 10">
- <xsl:text> wget -T 30 -t 5 "</xsl:text>
- <xsl:value-of select="$httpurl"/>
- <xsl:text>" ||&#xA;</xsl:text>
- </xsl:if>
- <!-- Download from upstream ftp -->
- <xsl:if test="string-length($ftpurl) &gt; 10">
- <xsl:text> wget -T 30 -t 5 "</xsl:text>
- <xsl:value-of select="$ftpurl"/>
- <xsl:text>" ||&#xA;</xsl:text>
- </xsl:if>
- <!-- The FTP_SERVER mirror as a last resort -->
- <xsl:text> wget -T 30 -t 5 "${JH_FTP_SERVER}svn/</xsl:text>
- <xsl:value-of select="$first_letter"/>
- <xsl:text>/$</xsl:text>
- <xsl:value-of select="$varname"/>
+ else<!-- Download from upstream http -->
+ wget -T 30 -t 5 "</xsl:text>
+ <xsl:value-of select="$httpurl"/>
<xsl:text>"
fi
fi</xsl:text>