Changeset e51fab2 for BLFS


Ignore:
Timestamp:
12/27/2012 08:10:02 AM (12 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
ablfs
Children:
eabc205
Parents:
12fb268
Message:

Correct a bug in xsl files, which made modules disappear when no other
package was present in a sublist.
+ make version bumping work for modules

Location:
BLFS/xsl
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • BLFS/xsl/bump.xsl

    r12fb268 re51fab2  
    1414      <xsl:when test="$version='N'">
    1515        <xsl:value-of select=
    16             "document($packages)//package[string(name)=$package]/version"/>
     16            "document($packages)//*[self::package or self::module]
     17                                   [string(name)=$package]/version"/>
    1718      </xsl:when>
    1819      <xsl:otherwise>
  • BLFS/xsl/gen_config.xsl

    r12fb268 re51fab2  
    6464  <xsl:template match="list">
    6565    <xsl:if
    66       test=".//package[(version and not(inst-version)) or
     66      test=".//*[self::package or self::module]
     67                    [(version and not(inst-version)) or
    6768                      string(version) != string(inst-version)]">
    6869      <xsl:text>config&#9;MENU_</xsl:text>
     
    9192  <xsl:template match="sublist">
    9293    <xsl:if
    93       test=".//package[(version and not(inst-version)) or
     94      test=".//*[self::package or self::module]
     95                    [(version and not(inst-version)) or
    9496                      string(version) != string(inst-version)]">
    9597      <xsl:text>&#9;config&#9;MENU_</xsl:text>
Note: See TracChangeset for help on using the changeset viewer.