app-text/docbook-xsl-ns-stylesheets: die on failed build-docbook-catalog

Fail loudly if build-docbook-catalog wasn't successful; this is likely
due to /run not being (bind-)mounted (in chroots/new installs).

Bug: https://bugs.gentoo.org/816303
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2021-10-07 03:47:19 +01:00
parent 98669e9696
commit cb200416b7

View File

@@ -72,9 +72,11 @@ EOF
}
pkg_postinst() {
build-docbook-catalog
# See bug #816303 for rationale behind die
build-docbook-catalog || die "Failed to regenerate docbook catalog. Is /run mounted?"
}
pkg_postrm() {
build-docbook-catalog
# See bug #816303 for rationale behind die
build-docbook-catalog || die "Failed to regenerate docbook catalog. Is /run mounted?"
}