From: Markus Lehtonen Date: Fri, 6 Jun 2014 07:22:31 +0000 (+0300) Subject: gbp-dch: fix handling of the '--meta' option X-Git-Tag: tizen/0.6.22-20150206~214 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=18d64b7fd5ec4b3297e79e84e58ec5b5ee5a5aff;p=tools%2Fgit-buildpackage.git gbp-dch: fix handling of the '--meta' option Make it effective again - previously it was totally ignored. Also, change it's default value to True to match the current behavior. Signed-off-by: Markus Lehtonen --- diff --git a/gbp/config.py b/gbp/config.py index 174eba4..63c11cb 100644 --- a/gbp/config.py +++ b/gbp/config.py @@ -119,7 +119,7 @@ class GbpOptionParser(OptionParser): 'tarball-dir' : '', 'ignore-new' : 'False', 'ignore-branch' : 'False', - 'meta' : 'False', + 'meta' : 'True', 'meta-closes' : 'Closes|LP', 'full' : 'False', 'id-length' : '0', diff --git a/gbp/dch.py b/gbp/dch.py index dc0149c..f983234 100644 --- a/gbp/dch.py +++ b/gbp/dch.py @@ -115,8 +115,11 @@ def format_changelog_entry(commit_info, options, last_commit=False): if options.idlen: entry[0] = '[%s] ' % commitid[0:options.idlen] + entry[0] - (bts_cmds, body) = extract_bts_cmds(body, options) - (thanks, body) = extract_thanks_info(body, options) + bts_cmds = {} + thanks = [] + if options.meta: + (bts_cmds, body) = extract_bts_cmds(body, options) + (thanks, body) = extract_thanks_info(body, options) body = filter_ignore_rx_matches(body, options) if 'full' in git_dch_cmds or (options.full and not 'short' in git_dch_cmds):