Fix 2 minor bugs:
- the tzdata DESTDIR should not be tzdata, because some package managers use $PACKAGE as their working directory, and this may conflicts with this one. tzdata DESTDIR is now 001-tzdata - when reading md5sums, the current code assumes that there is only one <para><literal> node reachable from ../.. (relative to <ulink>). This is true for the "official" book, but not necessarily for the snippets written for package management. The following change only assumes that the md5sum <para><literal> for a given <ulink> is the first one after <para><ulink>, which does not change anything for the book, and is better for user written snippets.
This commit is contained in:
parent
b9c3497abb
commit
56d842655b
2 changed files with 2 additions and 2 deletions
|
@ -455,7 +455,7 @@ exit
|
|||
<xsl:text>
|
||||
OLD_PKG_DEST=$PKG_DEST
|
||||
OLD_PKGDIR=$PKGDIR
|
||||
PKG_DEST=$(dirname $OLD_PKG_DEST)/tzdata
|
||||
PKG_DEST=$(dirname $OLD_PKG_DEST)/001-tzdata
|
||||
PKGDIR=$(dirname $PKGDIR)/tzdata-</xsl:text>
|
||||
<xsl:copy-of select="substring-before(
|
||||
substring-after(string(),'tzdata'),
|
||||
|
|
|
@ -109,7 +109,7 @@
|
|||
<xsl:value-of select="$package"/>
|
||||
<!-- Write MD5SUM value -->
|
||||
<xsl:text> </xsl:text>
|
||||
<xsl:value-of select="../..//para/literal"/>
|
||||
<xsl:value-of select="../following-sibling::para/literal"/>
|
||||
<xsl:text>
</xsl:text>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
|
Reference in a new issue