aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2016-09-15 07:01:38 +0200
committerGuido Günther <agx@sigxcpu.org>2016-09-15 07:22:11 +0200
commit3feba4924f2b13376c9237cab7aae4346304ab2f (patch)
tree28fb03bd778ff59f5dec6049fdd8d66c749516af
parentef7ca4a4d7a71a470182f5e88a2a3398853daa9f (diff)
dch: make urgency a config file option
so it can be set via gbp.conf Closes: #837680
-rw-r--r--gbp/config.py4
-rw-r--r--gbp/scripts/dch.py2
2 files changed, 5 insertions, 1 deletions
diff --git a/gbp/config.py b/gbp/config.py
index 4c32aafd..6516d698 100644
--- a/gbp/config.py
+++ b/gbp/config.py
@@ -180,6 +180,7 @@ class GbpOptionParser(OptionParser):
'rollback': 'True',
'component': [],
'bare': 'True',
+ 'urgency': 'medium',
}
help = {
'debian-branch':
@@ -348,9 +349,12 @@ class GbpOptionParser(OptionParser):
'bare':
"wether to create a bare repository on the remote side. "
"'Default is '%(bare)s'.",
+ 'urgency':
+ "Set urgency level, default is '%(urgency)s'"
}
short_opts = {
+ 'urgency': '-U',
}
def_config_files = {'/etc/git-buildpackage/gbp.conf': 'system',
diff --git a/gbp/scripts/dch.py b/gbp/scripts/dch.py
index 88e1c054..2ccbacbd 100644
--- a/gbp/scripts/dch.py
+++ b/gbp/scripts/dch.py
@@ -354,7 +354,7 @@ def build_parser(name):
"even if it doesn't match the list of known distributions")
version_group.add_option("-N", "--new-version", dest="new_version",
help="use this as base for the new version number")
- version_group.add_option("-U", "--urgency", dest="urgency", help="Set urgency level")
+ version_group.add_config_file_option("urgency", dest="urgency")
version_group.add_option("--bpo", dest="bpo", action="store_true", default=False,
help="Increment the Debian release number for an upload to backports, "
"and add a backport upload changelog comment.")