summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-10-07 03:47:27 +0100
committerSam James <sam@gentoo.org>2021-10-07 03:47:27 +0100
commitbad0bc11d42710957c6d6786a9db381308e55c4b (patch)
tree89a9460f685465decdc50972b6b689fa4383b2e7 /app-text/docbook-xsl-stylesheets
parentapp-text/docbook-xsl-ns-stylesheets: die on failed build-docbook-catalog (diff)
downloadgentoo-bad0bc11d42710957c6d6786a9db381308e55c4b.tar.gz
gentoo-bad0bc11d42710957c6d6786a9db381308e55c4b.tar.bz2
gentoo-bad0bc11d42710957c6d6786a9db381308e55c4b.zip
app-text/docbook-xsl-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-stylesheets')
-rw-r--r--app-text/docbook-xsl-stylesheets/docbook-xsl-stylesheets-1.79.1-r2.ebuild6
1 files changed, 4 insertions, 2 deletions
diff --git a/app-text/docbook-xsl-stylesheets/docbook-xsl-stylesheets-1.79.1-r2.ebuild b/app-text/docbook-xsl-stylesheets/docbook-xsl-stylesheets-1.79.1-r2.ebuild
index 572429784248..1e1416abedfa 100644
--- a/app-text/docbook-xsl-stylesheets/docbook-xsl-stylesheets-1.79.1-r2.ebuild
+++ b/app-text/docbook-xsl-stylesheets/docbook-xsl-stylesheets-1.79.1-r2.ebuild
@@ -94,9 +94,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?"
}