summaryrefslogtreecommitdiff
path: root/gbp/config.py
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2012-06-14 19:34:09 +0300
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>2014-11-14 14:45:07 +0200
commitf7861c586cdf41c50e8478047d7606650d10e693 (patch)
tree0c6500747e79be53f457d7853358339862c12072 /gbp/config.py
parent666e35fda776b811b2636692272f1507d46231f9 (diff)
downloadgit-buildpackage-f7861c586cdf41c50e8478047d7606650d10e693.tar.gz
git-buildpackage-f7861c586cdf41c50e8478047d7606650d10e693.tar.bz2
git-buildpackage-f7861c586cdf41c50e8478047d7606650d10e693.zip
rpm: add --orig-prefix option
Adds a new option --orig-prefix that affects the prefix of the generated/imported orig tarballs. For git-buildpackage-rpm, it defines the prefix of tarballs generated by the tool, 'auto' (default) makes gbp to guess the prefix, as before. NOTE: this doesn't affect the tarballs checked out from pristine-tar (i.e. if --pristine-tar is defined) or tarballs that are already present (see --git-tarball-dir option). For git-import-orig, this new option affects the prefix of tarballs imported into pristine-tar branch. If set to 'auto' (default) gbp doesn't mangle the prefix. Other tools (e.g. git-import-srpm) are not affected. 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 6ae16e02..cbc33a59 100644
--- a/gbp/config.py
+++ b/gbp/config.py
@@ -613,6 +613,7 @@ class GbpOptionParserRpm(GbpOptionParser):
'patch-export-compress' : '0',
'merge' : 'False',
'pristine-tarball-name' : 'auto',
+ 'orig-prefix' : 'auto',
})
help = dict(GbpOptionParser.help)
@@ -652,6 +653,9 @@ class GbpOptionParserRpm(GbpOptionParser):
'pristine-tarball-name':
"Filename to record to pristine-tar, set to 'auto' to not "
"mangle the file name, default is '%(pristine-tarball-name)s'",
+ 'orig-prefix':
+ "Prefix (dir) to be used when generating/importing tarballs, "
+ "default is '%(orig-prefix)s'",
})
# vim:et:ts=4:sw=4:et:sts=4:ai:set list listchars=tab\:»·,trail\:·: