xenserver: Clean up /usr/sbin/brctl dangling symlink.
authorAndrew Evans <aevans@nicira.com>
Mon, 14 Feb 2011 21:02:43 +0000 (13:02 -0800)
committerAndrew Evans <aevans@nicira.com>
Tue, 15 Feb 2011 01:39:58 +0000 (17:39 -0800)
commitd66880eeff656520e415c061eb44683389ea4f61
tree5ff2c7cd96ff835e818b4b4d7209ee08578890b3
parent0b8b6f71d5621a726a3bf5aa1bbee27ed1f4a8fe
xenserver: Clean up /usr/sbin/brctl dangling symlink.

Commit 54f16a10 removed Open vSwitch's /usr/sbin/brctl replacement for
XenServer, but because the RPM doesn't restore the original files on upgrade,
an upgrade leaves /usr/sbin/brctl a broken symlink to the removed
/usr/share/openvswitch/scripts/brctl.

This commit adds a one-time cleanup to restore the original XenServer-supplied
/usr/sbin/brctl. It also changes the RPM to restore all the replaced files with
their XenServer originals at post-uninstall time during an upgrade transaction,
just as uninstall has done up to now. This should prevent the same problem in
the future.

Bug #4667.
xenserver/openvswitch-xen.spec