summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--packaging/bookinfo.xsl10
1 files changed, 8 insertions, 2 deletions
diff --git a/packaging/bookinfo.xsl b/packaging/bookinfo.xsl
index 6283e06..7d740e4 100644
--- a/packaging/bookinfo.xsl
+++ b/packaging/bookinfo.xsl
@@ -41,7 +41,6 @@
select="@worker"/></xsl:call-template>
</othercredit>
</xsl:for-each>
- <xsl:text disable-output-escaping="yes">&amp;LEGALNOTICE;</xsl:text>
<xsl:element name="revhistory">
<xsl:for-each select="/rpm-info/changelog/revision[@role != 'rpm']">
<xsl:element name="revision">
@@ -64,7 +63,14 @@
</xsl:element>
</xsl:for-each>
</xsl:element>
- <xsl:text disable-output-escaping="yes">&amp;LEGALNOTICE;</xsl:text>
+ <xsl:choose>
+ <xsl:when test="/rpm-info/license/rights='OPL'">
+ <xsl:text disable-output-escaping="yes">&amp;LEGALNOTICE-OPL;</xsl:text>
+ </xsl:when>
+ <xsl:otherwise> <!-- assume FDL for now -->
+ <xsl:text disable-output-escaping="yes">&amp;LEGALNOTICE;</xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
</xsl:element>
</xsl:template>