Skip to content

Commit

Permalink
app-text/docbook-xsl-ns-stylesheets: die on failed build-docbook-catalog
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
thesamesam committed Oct 7, 2021
1 parent 98669e9 commit cb20041
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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?"
}

0 comments on commit cb20041

Please sign in to comment.