diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2012-05-30 09:23:46 +0300 |
---|---|---|
committer | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2013-03-08 13:13:37 +0200 |
commit | e8cee1131ab12a428fb74c6feaa3b4d41f1fae9f (patch) | |
tree | 68a0c79435fcc08f4e44e4220953426db21b0ec1 /gbp/config.py | |
parent | 1c2a739ef1ddf83b37bb291e02b76d9f435617ef (diff) | |
download | git-buildpackage-e8cee1131ab12a428fb74c6feaa3b4d41f1fae9f.tar.gz git-buildpackage-e8cee1131ab12a428fb74c6feaa3b4d41f1fae9f.tar.bz2 git-buildpackage-e8cee1131ab12a428fb74c6feaa3b4d41f1fae9f.zip |
buildpackage-rpm: add option --git-ignore-untracked
Adds a new commandline option to ignore untracked files, when running
git-buildpackage-rpm. When this option is given, the
git-buildpackage-rpm command fails if there are changes to tracked
files, but, succeeds if there are untracked files present. Normally it
fails in either case.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Diffstat (limited to 'gbp/config.py')
-rw-r--r-- | gbp/config.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gbp/config.py b/gbp/config.py index 81bb18ea..e7a81356 100644 --- a/gbp/config.py +++ b/gbp/config.py @@ -477,6 +477,7 @@ class GbpOptionParserRpm(GbpOptionParser): 'pq-branch' : 'development/%(branch)s', 'spec-file' : 'auto', 'export-dir' : 'rpmbuild', + 'ignore-untracked' : 'False', 'rpmbuild-builddir' : 'BUILD', 'rpmbuild-rpmdir' : 'RPMS', 'rpmbuild-sourcedir' : 'SOURCES', @@ -500,6 +501,8 @@ class GbpOptionParserRpm(GbpOptionParser): "format string for the patch-queue branch name, default is '%(pq-branch)s'", 'spec-file': "Spec file to use, 'auto' makes gbp to guess, other values make the packaging-dir option to be ignored, default is '%(spec-file)s'", + 'ignore-untracked': + "build with untracked files in the source tree, default is '%(ignore-untracked)s'", 'patch-export': "Create patches between upstream and export-treeish, default is '%(patch-export)s'", 'patch-export-ignore-regex': |