r3588 - jhalfs/branches/ablfs/BLFS/xsl

pierre at linuxfromscratch.org pierre at linuxfromscratch.org
Sat Mar 3 12:14:44 PST 2012


Author: pierre
Date: 2012-03-03 13:14:40 -0700 (Sat, 03 Mar 2012)
New Revision: 3588

Modified:
   jhalfs/branches/ablfs/BLFS/xsl/scripts.xsl
Log:
Update second place where MD5 sums occur in BLFS/xsl/scripts.xsl

Modified: jhalfs/branches/ablfs/BLFS/xsl/scripts.xsl
===================================================================
--- jhalfs/branches/ablfs/BLFS/xsl/scripts.xsl	2012-03-03 20:08:37 UTC (rev 3587)
+++ jhalfs/branches/ablfs/BLFS/xsl/scripts.xsl	2012-03-03 20:14:40 UTC (rev 3588)
@@ -394,8 +394,19 @@
         </xsl:if>
       </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(),'&#xA;')">
+              <xsl:value-of select="substring-before(substring-after(string(),'sum: '),'&#xA;')"/>
+            </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>&#x20;&#x20;$PACKAGE1" | md5sum -c -&#xA;</xsl:text>
       </xsl:when>
     </xsl:choose>




More information about the alfs-log mailing list