summaryrefslogtreecommitdiff
path: root/gbp/config.py
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2013-01-17 10:41:18 +0200
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>2014-11-14 14:46:23 +0200
commit64f0ddd250d786aae8aca1aa3a0aca2bed5faefd (patch)
treecc81cdc5f419cc989c8cc8e1d8c81e9c4c9fe30b /gbp/config.py
parent0caaee0239b7345f367cefae045795e40306a486 (diff)
downloadgit-buildpackage-64f0ddd250d786aae8aca1aa3a0aca2bed5faefd.tar.gz
git-buildpackage-64f0ddd250d786aae8aca1aa3a0aca2bed5faefd.tar.bz2
git-buildpackage-64f0ddd250d786aae8aca1aa3a0aca2bed5faefd.zip
buildpackage-rpm: support setting/updating the 'VCS:' tag
Git-buildpackage-rpm now always updates the 'VCS:' tag in the exported spec file. A new config option 'spec-vcs-tag' controls the format: - if empty, no 'VCS' tag is inserted and possible old 'VCS' tag is removed - otherwise, a 'VCS' tag is inserted or the old 'VCS' tag is updated - '%(tag)s' expands to the long tag name (from git-describe) Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Diffstat (limited to 'gbp/config.py')
-rw-r--r--gbp/config.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/gbp/config.py b/gbp/config.py
index 55093969..fdfc66c7 100644
--- a/gbp/config.py
+++ b/gbp/config.py
@@ -613,6 +613,7 @@ class GbpOptionParserRpm(GbpOptionParser):
'patch-export-compress' : '0',
'patch-export-ignore-path' : '',
'patch-export-squash-until' : '',
+ 'spec-vcs-tag' : '',
'merge' : 'False',
'pristine-tarball-name' : 'auto',
'orig-prefix' : 'auto',
@@ -659,6 +660,9 @@ class GbpOptionParserRpm(GbpOptionParser):
"Squash commits (from upstream) until given tree-ish into one "
"big diff, format is '<commit_ish>[:<filename_base>]'. "
"Default is '%(patch-export-squash-until)s'",
+ 'spec-vcs-tag':
+ "Set/update the 'VCS:' tag in the spec file, empty value "
+ "removes the tag entirely, default is '%(spec-vcs-tag)s'",
'pristine-tarball-name':
"Filename to record to pristine-tar, set to 'auto' to not "
"mangle the file name, default is '%(pristine-tarball-name)s'",