Yeela Kaplan has uploaded a new change for review.

Change subject: spec: Remove the lib64 vdsm python directory
......................................................................

spec: Remove the lib64 vdsm python directory

on upgrade from vdsm-4.14 postun scriptlet is trying
to start supervdsm,
while looking for vdsm python files under
old location (architecture dependent),
instead of the new location(noarch).

Removing old vdsm python files in post scriptlet
prevents lib64 path blocking imports from new location.

Change-Id: I9dc611cfad83739af3d0706570420cb6dc9630c4
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1279167
Signed-off-by: Yeela Kaplan <ykap...@redhat.com>
---
M vdsm.spec.in
1 file changed, 9 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/15/50115/1

diff --git a/vdsm.spec.in b/vdsm.spec.in
index cb53a81..f74ed76 100644
--- a/vdsm.spec.in
+++ b/vdsm.spec.in
@@ -336,6 +336,15 @@
 %description python
 Shared libraries between the various VDSM packages.
 
+%post python
+if [ "$1" -ge 2 ]; then
+    %global old_python_path /usr/lib64/python2.7/site-packages/vdsm
+    if [ -d "%{old_python_path}" ]; then
+        logger 'Removing "%{old_python_path}"'
+        rm -rf "%{old_python_path}"
+    fi
+fi
+
 %package tests
 Summary:        VDSM Test Suite
 Requires:       %{name} = %{version}-%{release}


-- 
To view, visit https://gerrit.ovirt.org/50115
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9dc611cfad83739af3d0706570420cb6dc9630c4
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Yeela Kaplan <ykap...@redhat.com>
_______________________________________________
vdsm-patches mailing list
vdsm-patches@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to