Add logic for the case when MD5 sums are not immediately followed by </para>
in BLFS/xsl/scripts.xsl
This commit is contained in:
parent
4fdb8bd089
commit
0aaeb8ec6e
1 changed files with 12 additions and 1 deletions
|
@ -309,8 +309,19 @@ mv ../${sect_ver}.md5.orig ../${sect_ver}.md5
</xsl:text>
|
|||
<xsl:text>
 fi
fi
</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:when test="contains(string(),'MD5')">
|
||||
<!-- some md5 sums are written with a LF -->
|
||||
<xsl:variable name="md5">
|
||||
<xsl:choose>
|
||||
<xsl:when test="contains(string(),'
')">
|
||||
<xsl:value-of select="substring-before(substring-after(string(),'sum: '),'
')"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="substring-after(string(),'sum: ')"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:variable>
|
||||
<xsl:text>echo "</xsl:text>
|
||||
<xsl:value-of select="substring-after(string(),'sum: ')"/>
|
||||
<xsl:value-of select="$md5"/>
|
||||
<xsl:text>  $PACKAGE" | md5sum -c -
</xsl:text>
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
|
|
Reference in a new issue