From f7861c586cdf41c50e8478047d7606650d10e693 Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Thu, 14 Jun 2012 19:34:09 +0300 Subject: 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 --- gbp/config.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gbp/config.py') 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\:·: -- cgit v1.2.3