net-misc/wicd: add missing dies.
authorPatrice Clement <monsieurp@gentoo.org>
Fri, 7 Apr 2017 21:00:20 +0000 (23:00 +0200)
committerPatrice Clement <monsieurp@gentoo.org>
Fri, 7 Apr 2017 21:00:20 +0000 (23:00 +0200)
Package-Manager: Portage-2.3.3, Repoman-2.3.1

net-misc/wicd/wicd-1.7.4-r2.ebuild

index b50b1c12c3dc2d6390eac2bf8b135820c363402a..e0f7dbe9fb903b4addeb53af761ee0e1793cd61e 100644 (file)
@@ -123,17 +123,17 @@ src_install() {
        keepdir /var/lib/wicd/configurations
        keepdir /etc/wicd/scripts/{postconnect,disconnect,preconnect}
        keepdir /var/log/wicd
-       use nls || rm -rf "${D}"/usr/share/locale
+       use nls || rm -rv "${D}"/usr/share/locale
        systemd_dounit "${S}/other/wicd.service"
 
        if use mac4lin; then
                rm -rf "${D}"/usr/share/pixmaps/wicd || die "Failed to remove old icons"
-               mv "${WORKDIR}"/wicd "${D}"/usr/share/pixmaps/
+               mv "${WORKDIR}"/wicd "${D}"/usr/share/pixmaps/ || die
        fi
        if use ambiance; then
                # Overwrite tray icons with ambiance icon
-               rm "${WORKDIR}/Icone Wicd Lucid"/signal*
-               cp "${WORKDIR}/Icone Wicd Lucid"/*.png "${D}"/usr/share/pixmaps/wicd/
+               rm "${WORKDIR}/Icone Wicd Lucid"/signal* || die
+               cp "${WORKDIR}/Icone Wicd Lucid"/*.png "${D}"/usr/share/pixmaps/wicd/ || die
        fi
        readme.gentoo_create_doc
 }