Makes xorg-driver a required dep of xterm, since the preceding-sibling

is not a unique package. In xsl/gen_pkg_list.xsl
This commit is contained in:
Pierre Labastie 2012-04-22 20:59:19 +00:00
parent 6b268524bf
commit ee1e22bb30

View file

@ -202,7 +202,7 @@
</xsl:element>
</xsl:if>
<!-- Dependencies -->
<!-- If in Xorg chapter, consider that the preceding package is
<!-- If in Xorg or KDE chapter, consider that the preceding package is
the first dependency (not always noted in the book) -->
<xsl:if test="ancestor::chapter[@id='kde4-core'] or
(ancestor::chapter[@id='x-window-system'] and
@ -212,8 +212,13 @@
<xsl:element name="dependency">
<xsl:attribute name="status">required</xsl:attribute>
<xsl:attribute name="name">
<xsl:value-of
select="preceding-sibling::sect1[1]/@id"/>
<xsl:choose>
<xsl:when test="@id='xterm2'">xorg7-driver</xsl:when>
<xsl:otherwise>
<xsl:value-of
select="preceding-sibling::sect1[1]/@id"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:attribute name="type">ref</xsl:attribute>
</xsl:element>