Fabian Deutsch has uploaded a new change for review. Change subject: spec: Raise error on uninstal or upgrade ......................................................................
spec: Raise error on uninstal or upgrade ovirt-noe (the package) is not intended to get upgraded or removed, because of this we raise a descriptive error in those cases. Change-Id: I624526637f1c12b2dad2064ef48da0a82a31074a Signed-off-by: Fabian Deutsch <[email protected]> --- M ovirt-node.spec.in 1 file changed, 20 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/72/27672/1 diff --git a/ovirt-node.spec.in b/ovirt-node.spec.in index e232465..9946356 100644 --- a/ovirt-node.spec.in +++ b/ovirt-node.spec.in @@ -530,8 +530,28 @@ %endif +%pre +# +# ovirt-node must not be upgraded. +# It is intended to only be installed. +# Upgrades happen on an image basis +# +if [[ $1 -eq 2 ]] ; then + echo "Upgrade ovirt-node as a package is not supported." + exit 42 +fi + %preun +# +# ovirt-node must not be uninstalled. +# It is intended to only be installed. +# Upgrades happen on an image basis +# +echo "Upgrade/Uninstalling ovirt-node as a package is not supported." +exit 42 + +# Keeping the rest if it is possible one day /sbin/chkconfig --level 35 netconsole off %if ! %{is_systemd} if [ $1 = 0 ] ; then -- To view, visit http://gerrit.ovirt.org/27672 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I624526637f1c12b2dad2064ef48da0a82a31074a Gerrit-PatchSet: 1 Gerrit-Project: ovirt-node Gerrit-Branch: master Gerrit-Owner: Fabian Deutsch <[email protected]> _______________________________________________ node-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/node-patches
