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> | 2014-11-14 14:45:07 +0200 |
commit | de4d64e38c0d48e9181a490573cb91e1097b30fd (patch) | |
tree | 8dbeb0d206df81c544ce767a0e6a0252942025d2 /gbp/config.py | |
parent | bed6d8c31d413bfacbc19e657e4c3a23a0c7f54e (diff) | |
download | git-buildpackage-de4d64e38c0d48e9181a490573cb91e1097b30fd.tar.gz git-buildpackage-de4d64e38c0d48e9181a490573cb91e1097b30fd.tar.bz2 git-buildpackage-de4d64e38c0d48e9181a490573cb91e1097b30fd.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 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gbp/config.py b/gbp/config.py index 62b8dd2c..db92037d 100644 --- a/gbp/config.py +++ b/gbp/config.py @@ -601,6 +601,7 @@ class GbpOptionParserRpm(GbpOptionParser): 'builder' : 'rpmbuild', 'cleaner' : '/bin/true', 'export-dir' : '../rpmbuild', + 'ignore-untracked' : 'False', 'rpmbuild-builddir' : 'BUILD', 'rpmbuild-rpmdir' : 'RPMS', 'rpmbuild-sourcedir' : 'SOURCES', @@ -636,6 +637,9 @@ class GbpOptionParserRpm(GbpOptionParser): "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'", |