r3590 - jhalfs/branches/ablfs/BLFS/xsl

pierre at linuxfromscratch.org pierre at linuxfromscratch.org
Mon Mar 5 09:23:14 PST 2012


Author: pierre
Date: 2012-03-05 10:23:09 -0700 (Mon, 05 Mar 2012)
New Revision: 3590

Modified:
   jhalfs/branches/ablfs/BLFS/xsl/scripts.xsl
Log:
Code to copy back the tarball to SRC_ARCHIVE and
to account for the possibility of new-line in md5sums strings
in scripts.xsl

Modified: jhalfs/branches/ablfs/BLFS/xsl/scripts.xsl
===================================================================
--- jhalfs/branches/ablfs/BLFS/xsl/scripts.xsl	2012-03-03 20:18:50 UTC (rev 3589)
+++ jhalfs/branches/ablfs/BLFS/xsl/scripts.xsl	2012-03-05 17:23:09 UTC (rev 3590)
@@ -320,7 +320,7 @@
 <!-- some md5 sums are written with a LF -->
         <xsl:variable name="md5">
           <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:when>
             <xsl:otherwise>
@@ -397,7 +397,7 @@
 <!-- some md5 sums are written with a LF -->
         <xsl:variable name="md5">
           <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:when>
             <xsl:otherwise>




More information about the alfs-log mailing list