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:
parent
12fb268a9e
commit
e51fab2cc5
2 changed files with 6 additions and 3 deletions
|
@ -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"/>
|
||||
|
|
|
@ -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	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>	config	MENU_</xsl:text>
|
||||
<xsl:value-of select="@id"/>
|
||||
|
|
Reference in a new issue