Previous patch removed the if condition for postun script by mistake. The weak-update symlinks should be removed only for uninstallation not upgrade.
VMware-BZ: #2169383 Signed-off-by: Martin Xu <[email protected]> CC: Greg Rose <[email protected]> CC: Ben Pfaff <[email protected]> CC: Flavio Leitner <[email protected]> --- rhel/kmod-openvswitch-rhel6.spec.in | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/rhel/kmod-openvswitch-rhel6.spec.in b/rhel/kmod-openvswitch-rhel6.spec.in index 4e67475..f18802d 100644 --- a/rhel/kmod-openvswitch-rhel6.spec.in +++ b/rhel/kmod-openvswitch-rhel6.spec.in @@ -105,10 +105,12 @@ else fi %postun -for kname in `ls -d /lib/modules/*` -do - rm -rf $kname/weak-updates/openvswitch -done +if [ "$1" = 0 ]; then # Erase, not upgrade + for kname in `ls -d /lib/modules/*` + do + rm -rf $kname/weak-updates/openvswitch + done +fi /sbin/depmod -a %files -- 1.8.3.1 _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
