Sandro Bonazzola has uploaded a new change for review.

Change subject: packaging: spec: update maven depmap
......................................................................

packaging: spec: update maven depmap

Added calls to %update_maven_depmap macro in %post
and %postun if %{install_poms} in tools, restapi and base
package.
Fix missing update of /etc/maven/maven2-depmap.xml
on rpm upgrade.

Change-Id: I099e71ee951772aa3a69fb2655513c69e9dce7b3
Signed-off-by: Sandro Bonazzola <sbona...@redhat.com>
---
M ovirt-engine.spec.in
1 file changed, 24 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/87/16187/1

diff --git a/ovirt-engine.spec.in b/ovirt-engine.spec.in
index f33a274..992b5f3 100644
--- a/ovirt-engine.spec.in
+++ b/ovirt-engine.spec.in
@@ -231,6 +231,16 @@
 %description restapi
 The RESTful API for %{product_name_short}
 
+%post restapi
+%if %{install_poms}
+%update_maven_depmap
+%endif
+
+%postun restapi
+%if %{install_poms}
+%update_maven_depmap
+%endif
+
 
 %package setup
 Summary: Setup and upgrade scripts for %{product_name_short}
@@ -304,10 +314,16 @@
 %if %{install_systemd}
 %systemd_post ovirt-engine-notifier.service
 %endif
+%if %{install_poms}
+%update_maven_depmap
+%endif
 
 %postun tools
 %if %{install_systemd}
 %systemd_postun ovirt-engine-notifier.service
+%endif
+%if %{install_poms}
+%update_maven_depmap
 %endif
 
 %preun tools
@@ -498,6 +514,11 @@
 %endif
 
 
+%post
+%if %{install_poms}
+%update_maven_depmap
+%endif
+
 %postun
 if [ "$1" -eq 0 ]
 then
@@ -509,6 +530,9 @@
         sed -i '/%{name}/d' %{_sysconfdir}/yum/pluginconf.d/versionlock.list
     fi
 fi
+%if %{install_poms}
+%update_maven_depmap
+%endif
 
 
 %postun backend


-- 
To view, visit http://gerrit.ovirt.org/16187
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I099e71ee951772aa3a69fb2655513c69e9dce7b3
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Sandro Bonazzola <sbona...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to