Author: pierre
Date: Wed May  7 08:30:33 2014
New Revision: 3792

Log:
Correct urls generation when there is a trailing slash (thanks to sourceforge
for the homework;)

Modified:
   jhalfs/trunk/common/urls.xsl

Modified: jhalfs/trunk/common/urls.xsl
==============================================================================
--- jhalfs/trunk/common/urls.xsl        Sat Apr 26 16:48:05 2014        (r3791)
+++ jhalfs/trunk/common/urls.xsl        Wed May  7 08:30:33 2014        (r3792)
@@ -117,7 +117,7 @@
   <xsl:template name="package.name">
     <xsl:param name="url"/>
     <xsl:choose>
-      <xsl:when test="contains($url, '/')">
+      <xsl:when test="contains($url, '/') and not 
(substring-after($url,'/')='')">
         <xsl:call-template name="package.name">
           <xsl:with-param name="url" select="substring-after($url, '/')"/>
         </xsl:call-template>
-- 
http://lists.linuxfromscratch.org/listinfo/alfs-log
Unsubscribe: See the above information page

Reply via email to