aboutsummaryrefslogtreecommitdiffhomepage
path: root/gbp/config.py
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2013-04-22 10:38:54 +0300
committerGuido Günther <agx@sigxcpu.org>2013-04-26 22:08:14 +0200
commitf9722f6bf8d2ac64b658ce499e2d47203f1df339 (patch)
treeef3ba31c4071fb259376d74b416bed3f045b4e91 /gbp/config.py
parentf880910c80c30bf64f951bb054814d2e00e76b77 (diff)
buildpackage: implement --[no-]hooks option
For enabling/disabling all hooks. This option does not affect the builder command, though. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Diffstat (limited to 'gbp/config.py')
-rw-r--r--gbp/config.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/gbp/config.py b/gbp/config.py
index ec75765a..c27cf5a6 100644
--- a/gbp/config.py
+++ b/gbp/config.py
@@ -83,6 +83,7 @@ class GbpOptionParser(OptionParser):
'prebuild' : '',
'postexport' : '',
'postimport' : '',
+ 'hooks' : 'True',
'debian-tag' : 'debian/%(version)s',
'upstream-tag' : 'upstream/%(version)s',
'import-msg' : 'Imported Upstream version %(version)s',
@@ -241,6 +242,8 @@ class GbpOptionParser(OptionParser):
'postimport':
("hook run after a successful import, "
"default is '%(postimport)s'"),
+ 'hooks':
+ ("Enable running all hooks, default is %(hooks)s"),
'time-machine':
("don't try head commit only to apply the patch queue "
"but look TIME_MACHINE commits back, "