summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-10-07 03:47:19 +0100
committerSam James <sam@gentoo.org>2021-10-07 03:47:19 +0100
commitcb200416b701b9c4bcbcec2dea3db8a23f3f73f0 (patch)
treeeeb69ede6d5a7172d92ffc87f78ee4055eb5a21b /app-text/docbook-xsl-ns-stylesheets/docbook-xsl-ns-stylesheets-1.79.1.ebuild
parentapp-text/docbook-xml-simple-dtd: die on failed build-docbook-catalog (diff)
downloadgentoo-cb200416b701b9c4bcbcec2dea3db8a23f3f73f0.tar.gz
gentoo-cb200416b701b9c4bcbcec2dea3db8a23f3f73f0.tar.bz2
gentoo-cb200416b701b9c4bcbcec2dea3db8a23f3f73f0.zip
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>
Diffstat (limited to 'app-text/docbook-xsl-ns-stylesheets/docbook-xsl-ns-stylesheets-1.79.1.ebuild')
-rw-r--r--app-text/docbook-xsl-ns-stylesheets/docbook-xsl-ns-stylesheets-1.79.1.ebuild6
1 files changed, 4 insertions, 2 deletions
diff --git a/app-text/docbook-xsl-ns-stylesheets/docbook-xsl-ns-stylesheets-1.79.1.ebuild b/app-text/docbook-xsl-ns-stylesheets/docbook-xsl-ns-stylesheets-1.79.1.ebuild
index 1755483b705e..d45bb7f26562 100644
--- a/app-text/docbook-xsl-ns-stylesheets/docbook-xsl-ns-stylesheets-1.79.1.ebuild
+++ b/app-text/docbook-xsl-ns-stylesheets/docbook-xsl-ns-stylesheets-1.79.1.ebuild
@@ -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?"
}