Skip to content

Commit

Permalink
Merge pull request #25 from rocky-linux/fix/deprecated_patch_format
Browse files Browse the repository at this point in the history
Change patch directive to maximum compatible form
nazunalika authored Jun 24, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents eba46f0 + ced0546 commit c0794a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/directives/spec_change.go
Original file line number Diff line number Diff line change
@@ -107,7 +107,7 @@ func sourcePatchOperationAfterLoop(req *sourcePatchOperationAfterLoopRequest) (b
*req.newLines = append(*req.newLines, fmt.Sprintf("%s:%s%s", field, spaces, file.Name))

if req.expectedField == "Patch" && file.AddToPrep {
val := fmt.Sprintf("%%patch%d", fieldNum)
val := fmt.Sprintf("%%patch -P%d", fieldNum)
if file.NPath > 0 {
val = fmt.Sprintf("%s -p%d", val, file.NPath)
}

0 comments on commit c0794a0

Please sign in to comment.