[ovs-dev] [PATCH 1/2] xenserver: Minor spec file cleanups

Justin Pettit jpettit at nicira.com
Tue Apr 6 03:36:41 UTC 2010


Remove compiled InterfaceReconfigure byte code on uninstall.  Also, fix
minor typo in error message.
---
 xenserver/openvswitch-xen.spec |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/xenserver/openvswitch-xen.spec b/xenserver/openvswitch-xen.spec
index ac2f2a0..7b5e022 100644
--- a/xenserver/openvswitch-xen.spec
+++ b/xenserver/openvswitch-xen.spec
@@ -250,7 +250,7 @@ done
 plugin=$(readlink /usr/lib/xsconsole/plugins-base/XSFeatureVSwitch.py)
 if [ "$plugin" != "/usr/share/openvswitch/scripts/XSFeatureVSwitch.py" ]; then
     rm -f /usr/lib/xsconsole/plugins-base/XSFeatureVSwitch.py
-    ln -s /usr/share/openvswitch/scripts/XSFeatureVSwitch.py /usr/lib/xsconsole/plugins-base/ || printf "Could not link to vSswitch xsconsole plugin.\n"
+    ln -s /usr/share/openvswitch/scripts/XSFeatureVSwitch.py /usr/lib/xsconsole/plugins-base/ || printf "Could not link to Open vSwitch xsconsole plugin.\n"
 fi
 
 # Ensure all required services are set to run
@@ -292,6 +292,13 @@ if [ "$1" = "0" ]; then     # $1 = 1 for upgrade
         /usr/lib/xsconsole/plugins-base/XSFeatureVSwitch.pyo \
         || printf "Could not remove Open vSwitch xsconsole plugin.\n"
 
+    rm -f /usr/share/openvswitch/scripts/InterfaceReconfigure.pyc \
+        /usr/share/openvswitch/scripts/InterfaceReconfigure.pyo \
+        /usr/share/openvswitch/scripts/InterfaceReconfigureBridge.pyc \
+        /usr/share/openvswitch/scripts/InterfaceReconfigureBridge.pyo \
+        /usr/share/openvswitch/scripts/InterfaceReconfigureVSwitch.pyc \
+        /usr/share/openvswitch/scripts/InterfaceReconfigureVSwitch.pyo 
+
     # Restore original XenServer scripts
     for f in \
         /opt/xensource/libexec/interface-reconfigure \
-- 
1.7.0.3





More information about the dev mailing list