Fix generation of full locales

The recent addition of instructions for adding locales not
installed by make install-localedata has broken the generation
of the scriptlet, because there is a missing linefeed.
Use xsl:for-each to add a linefeed after each <userinput>
text.
This commit is contained in:
Pierre Labastie 2021-05-11 09:59:19 +02:00
parent 894eec328d
commit cfdb089dcf

View file

@ -334,8 +334,10 @@ rm -rf $PKG_DEST
<xsl:if test="../@id='ch-system-glibc' and @role='installation'"> <xsl:if test="../@id='ch-system-glibc' and @role='installation'">
<xsl:choose> <xsl:choose>
<xsl:when test="$full-locale='y'"> <xsl:when test="$full-locale='y'">
<xsl:copy-of select="//userinput[@remap='locale-full']"/> <xsl:for-each select="//userinput[@remap='locale-full']">
<xsl:text>&#xA;</xsl:text> <xsl:copy-of select="."/>
<xsl:text>&#xA;</xsl:text>
</xsl:for-each>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:copy-of select="//userinput[@remap='locale-test']"/> <xsl:copy-of select="//userinput[@remap='locale-test']"/>