net-misc/openvswitch: fixing it for the last time I hope
authorMatthew Thode <prometheanfire@gentoo.org>
Wed, 5 Oct 2016 13:22:53 +0000 (08:22 -0500)
committerMatthew Thode <prometheanfire@gentoo.org>
Wed, 5 Oct 2016 13:22:53 +0000 (08:22 -0500)
Package-Manager: portage-2.3.0

net-misc/openvswitch/openvswitch-2.6.0.ebuild

index b2c629c87fda4fbca5d631858a61fe0beee0fa0f..721111b5ac6858f86358e97064460102077290f5 100644 (file)
@@ -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