Code to copy back the tarball to SRC_ARCHIVE and

to account for the possibility of new-line in md5sums strings
in scripts.xsl
This commit is contained in:
Pierre Labastie 2012-03-05 17:23:09 +00:00
parent d120fec35b
commit 6631b83ab8

View file

@ -320,7 +320,7 @@ fi
<!-- some md5 sums are written with a LF --> <!-- some md5 sums are written with a LF -->
<xsl:variable name="md5"> <xsl:variable name="md5">
<xsl:choose> <xsl:choose>
<xsl:when test="contains(string(),'&#xA;')"> <xsl:when test="contains(substring-after(string(),'sum: '),'&#xA;')">
<xsl:value-of select="substring-before(substring-after(string(),'sum: '),'&#xA;')"/> <xsl:value-of select="substring-before(substring-after(string(),'sum: '),'&#xA;')"/>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
@ -397,7 +397,7 @@ fi
<!-- some md5 sums are written with a LF --> <!-- some md5 sums are written with a LF -->
<xsl:variable name="md5"> <xsl:variable name="md5">
<xsl:choose> <xsl:choose>
<xsl:when test="contains(string(),'&#xA;')"> <xsl:when test="contains(substring-after(string(),'sum: '),'&#xA;')">
<xsl:value-of select="substring-before(substring-after(string(),'sum: '),'&#xA;')"/> <xsl:value-of select="substring-before(substring-after(string(),'sum: '),'&#xA;')"/>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>