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
This commit is contained in:
Pierre Labastie 2012-12-27 08:10:02 +00:00
parent 12fb268a9e
commit e51fab2cc5
2 changed files with 6 additions and 3 deletions

View file

@ -13,7 +13,8 @@
<xsl:choose>
<xsl:when test="$version='N'">
<xsl:value-of select=
"document($packages)//package[string(name)=$package]/version"/>
"document($packages)//*[self::package or self::module]
[string(name)=$package]/version"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$version"/>

View file

@ -63,7 +63,8 @@ config SUDO
<xsl:template match="list">
<xsl:if
test=".//package[(version and not(inst-version)) or
test=".//*[self::package or self::module]
[(version and not(inst-version)) or
string(version) != string(inst-version)]">
<xsl:text>config&#9;MENU_</xsl:text>
<xsl:value-of select="@id"/>
@ -90,7 +91,8 @@ depends MENU_</xsl:text>
<xsl:template match="sublist">
<xsl:if
test=".//package[(version and not(inst-version)) or
test=".//*[self::package or self::module]
[(version and not(inst-version)) or
string(version) != string(inst-version)]">
<xsl:text>&#9;config&#9;MENU_</xsl:text>
<xsl:value-of select="@id"/>