Change dependance on preceding module in Python Modules from "required"

to "optional"
This commit is contained in:
Pierre Labastie 2012-12-27 08:28:26 +00:00
parent e51fab2cc5
commit eabc2055e3

View file

@ -151,21 +151,19 @@
<!-- Dependencies --> <!-- Dependencies -->
<!-- First the case of python modules or d-bus bindings --> <!-- First the case of python modules or d-bus bindings -->
<xsl:if test="self::sect2"> <xsl:if test="self::sect2">
<!-- Python modules have a building order which we have to indicate <!-- dependencies -->
as dependencies. The preceding module has to be the first <xsl:apply-templates select=".//para[@role='required' or
dependency. --> @role='recommended' or
@role='optional']"
mode="dependency"/>
</xsl:if>
<!-- For python modules, the preceding module is an optional dep -->
<xsl:if test="ancestor::sect1[@id='python-modules']"> <xsl:if test="ancestor::sect1[@id='python-modules']">
<xsl:apply-templates <xsl:apply-templates
select="preceding-sibling::sect2[@role='package'] select="preceding-sibling::sect2[@role='package']
//listitem[para/xref/@linkend=current()/@id]" //listitem[para/xref/@linkend=current()/@id]"
mode="prec-dep"/> mode="prec-dep"/>
</xsl:if> </xsl:if>
<!-- The other dependencies (for Python modules) or dependencies (for DBus) -->
<xsl:apply-templates select=".//para[@role='required' or
@role='recommended' or
@role='optional']"
mode="dependency"/>
</xsl:if>
<!-- Now the case of perl modules: let us test our XSLT abilities. <!-- Now the case of perl modules: let us test our XSLT abilities.
Well, "use the sibling, Luke" --> Well, "use the sibling, Luke" -->
<xsl:if test="self::bridgehead"> <xsl:if test="self::bridgehead">
@ -277,7 +275,9 @@
<xsl:text> <xsl:text>
</xsl:text> </xsl:text>
<xsl:element name="dependency"> <xsl:element name="dependency">
<xsl:attribute name="status">required</xsl:attribute> <!-- the dep on the preceding package used to be required for python.
It seems optional now -->
<xsl:attribute name="status">optional</xsl:attribute>
<xsl:attribute name="name"> <xsl:attribute name="name">
<xsl:value-of select="preceding-sibling::listitem[1]//@linkend"/> <xsl:value-of select="preceding-sibling::listitem[1]//@linkend"/>
</xsl:attribute> </xsl:attribute>