sys-power/apcupsd: Fixup missing || die
authorKristian Fiskerstrand <k_f@gentoo.org>
Wed, 28 Sep 2016 21:17:02 +0000 (23:17 +0200)
committerKristian Fiskerstrand <k_f@gentoo.org>
Wed, 28 Sep 2016 21:17:25 +0000 (23:17 +0200)
Package-Manager: portage-2.3.1

sys-power/apcupsd/apcupsd-3.14.14.ebuild

index 22b98875af4140f1e6c0a4ae24588f2f42b1026b..02c1086791dea04cd2534537f8e2acb9d58ce46e 100644 (file)
@@ -74,12 +74,12 @@ src_compile() {
        # the text files in the distribution, but I wouldn't count on them
        # doing that anytime soon.
        MANPAGER=$(type -p cat) \
-               emake || die "emake failed"
+               emake
 }
 
 src_install() {
        emake DESTDIR="${D}" install
-       rm -f "${D}"/etc/init.d/halt
+       rm -f "${D}"/etc/init.d/halt || die
 
        insinto /etc/apcupsd
        newins examples/safe.apccontrol safe.apccontrol
@@ -90,7 +90,7 @@ src_install() {
 
        dohtml -r doc/manual/*
 
-       rm "${D}"/etc/init.d/apcupsd
+       rm "${D}"/etc/init.d/apcupsd || die
        newinitd "${FILESDIR}/${PN}.init.4" "${PN}"
        newinitd "${FILESDIR}/${PN}.powerfail.init" "${PN}".powerfail
 
@@ -98,7 +98,7 @@ src_install() {
        systemd_dotmpfilesd "${FILESDIR}"/${PN}-tmpfiles.conf
 
        # remove hal settings, we don't really want to have it around still.
-       rm -r "${D}"/usr/share/hal
+       rm -r "${D}"/usr/share/hal || die
 
        # replace it with our udev rules if we're in Linux
        if use kernel_linux; then