summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-06-29 14:31:55 +0000
committerGerrit Code Review <review@openstack.org>2016-06-29 14:31:55 +0000
commit424a1c0254126bd86ced4d0ad954a14109f98a7e (patch)
tree4c369ec40fcbaa430bbb2fd6beea14202a524be4
parentce8a0b3598404055a3c9921571fbed763475620d (diff)
parent3554228b2d756d939195444379b1ea41a17adcf8 (diff)
Merge "Allow empty uninstall hooks"
-rw-r--r--fuel_plugin_builder/templates/v3/build/plugin_rpm.spec.mako2
1 files changed, 2 insertions, 0 deletions
diff --git a/fuel_plugin_builder/templates/v3/build/plugin_rpm.spec.mako b/fuel_plugin_builder/templates/v3/build/plugin_rpm.spec.mako
index d55d847..df3abdd 100644
--- a/fuel_plugin_builder/templates/v3/build/plugin_rpm.spec.mako
+++ b/fuel_plugin_builder/templates/v3/build/plugin_rpm.spec.mako
@@ -50,6 +50,8 @@ ${ postinstall_hook }
50# uninstall: 0 50# uninstall: 0
51% if uninstall_hook: 51% if uninstall_hook:
52if [ $1 -eq 0 ]; then 52if [ $1 -eq 0 ]; then
53 # insert no-op to allow empty or comment-only uninstall hooks
54 :
53 ${ uninstall_hook } 55 ${ uninstall_hook }
54fi 56fi
55% endif 57% endif