]> review.fuel-infra Code Review - packages/centos6/qemu.git/commitdiff
Change requested in launchpad bug #1288352 4.1.1 4.1.1-updates 4.1.2
authorVitaly Parakhin <vparakhin@mirantis.com>
Fri, 21 Mar 2014 08:50:19 +0000 (10:50 +0200)
committerVitaly Parakhin <vparakhin@mirantis.com>
Thu, 17 Apr 2014 11:28:03 +0000 (14:28 +0300)
Change-Id: I514207dd2151569145d1c4c875abdfd537579939

qemu.spec

index af54851f05ae19e36678a21a67e5793ed0a55b57..a8d3b1f53d1a040a3667ed4a5270e5170e983a46 100644 (file)
--- a/qemu.spec
+++ b/qemu.spec
@@ -123,6 +123,7 @@ ExclusiveArch: %{kvm_archs}
 %define _smp_mflags %{nil}
 %endif
 
+
 # This is generated from the git qemu-kvm-1.2.0 tag, replace with proper
 # upstream tarbal once available
 Source0: qemu-kvm-%{version}.tar.gz
@@ -1483,6 +1484,7 @@ if [ $1 -eq 1 ] ; then
     # Initial installation
     /bin/systemctl enable ksm.service >/dev/null 2>&1 || :
     /bin/systemctl enable ksmtuned.service >/dev/null 2>&1 || :
+    /bin/ln -s /usr/bin/qemu-kvm /usr/libexec/qemu-kvm
 fi
 
 getent group kvm >/dev/null || groupadd -g 36 -r kvm
@@ -1507,7 +1509,10 @@ if [ $1 -ge 1 ] ; then
     /bin/systemctl try-restart ksmtuned.service >/dev/null 2>&1 || :
     /bin/systemctl try-restart ksm.service >/dev/null 2>&1 || :
 fi
-
+if [ $1 -eq 0 ] ; then
+    # Package removal, not upgrade
+    /bin/rm -f /usr/libexec/qemu-kvm
+fi
 
 %global kvm_files \
 %{_sysconfdir}/sysconfig/modules/kvm.modules \