commit:     92b8c417d8bbeb6b531cb1cfd08ac6fc79aa40d5
Author:     Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
AuthorDate: Wed Oct  5 13:22:53 2016 +0000
Commit:     Matt Thode <prometheanfire <AT> gentoo <DOT> org>
CommitDate: Wed Oct  5 13:22:53 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=92b8c417

net-misc/openvswitch: fixing it for the last time I hope

Package-Manager: portage-2.3.0

 net-misc/openvswitch/openvswitch-2.6.0.ebuild | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/net-misc/openvswitch/openvswitch-2.6.0.ebuild 
b/net-misc/openvswitch/openvswitch-2.6.0.ebuild
index b2c629c..721111b 100644
--- a/net-misc/openvswitch/openvswitch-2.6.0.ebuild
+++ b/net-misc/openvswitch/openvswitch-2.6.0.ebuild
@@ -107,8 +107,12 @@ src_install() {
        fperms 0750 /etc/ssl/openvswitch
 
        rm -rf "${ED}var/run" || die "rm failed"
-       ! use monitor && rmdir "${ED}usr/share/ovsdbmonitor" || die "rm failed"
-       ! use debug && rm "${ED}usr/bin/ovs-parse-leaks" die "rm failed"
+       if ! use monitor ; then
+               rmdir "${ED}usr/share/ovsdbmonitor" || die "rm failed"
+       fi
+       if ! use debug ; then
+               rm "${ED}usr/bin/ovs-parse-leaks" die "rm failed"
+       fi
 
        newconfd "${FILESDIR}/ovsdb-server_conf2" ovsdb-server
        newconfd "${FILESDIR}/ovs-vswitchd_conf" ovs-vswitchd

Reply via email to