Skip to content

Commit

Permalink
Merge pull request #1769 from hectorj2f/patch_fuzzz
Browse files Browse the repository at this point in the history
patch pipeline: expose fuzz flag so we can set a different value
  • Loading branch information
hectorj2f authored Jan 31, 2025
2 parents 6c1d51c + ae28879 commit e66f9e1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/build/pipelines/patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ inputs:
The number of path components to strip while extracting.
default: 1

fuzz:
description: |
Sets the maximum fuzz factor. This option only applies to context diffs, and causes patch to ignore up to that many lines in looking for places to install a hunk.
default: 2

patches:
description: |
A list of patches to apply, as a whitespace delimited string.
Expand All @@ -33,5 +38,5 @@ pipeline:
fi
grep -v -E '^(#|$)' $series | (while read patchfile; do
patch '-p${{inputs.strip-components}}' --verbose < $patchfile
patch '-p${{inputs.strip-components}}' --fuzz=${{inputs.fuzz}} --verbose < $patchfile
done)

0 comments on commit e66f9e1

Please sign in to comment.