diff options
author | Tzafrir Cohen <tzafrir@debian.org> | 2016-12-01 13:31:48 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2016-12-07 12:52:01 +0100 |
commit | 73d30ef38a57fd5b10d862c8311a08196f24e001 (patch) | |
tree | eaefaa90f7bbbe1a92d388621bf77703393f5daf /gbp/rpm/__init__.py | |
parent | fa091b6aa82c675a94cd39ec5a68cd4eb4db8215 (diff) |
specfile: handle %patch -F
The %patch macro of rpm supports the flag -F<num>, which seems to be
similar to that of patch(1): allow patches with a specific fuzz.
Parse the option but ignore it since we don't want patches with fuzz.
Closes: #846479
Diffstat (limited to 'gbp/rpm/__init__.py')
-rw-r--r-- | gbp/rpm/__init__.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gbp/rpm/__init__.py b/gbp/rpm/__init__.py index 4948e871..161e6aee 100644 --- a/gbp/rpm/__init__.py +++ b/gbp/rpm/__init__.py @@ -328,6 +328,7 @@ class SpecFile(object): patchparser.add_option("-P", dest="patchnum") patchparser.add_option("-b", dest="backup") patchparser.add_option("-E", dest="removeempty") + patchparser.add_option("-F", dest="fuzz") arglist = args.split() return patchparser.parse_args(arglist)[0] |