Skip to content
This repository was archived by the owner on Jun 27, 2025. It is now read-only.

Commit c0794a0

Browse files
authored
Merge pull request #25 from rocky-linux/fix/deprecated_patch_format
Change patch directive to maximum compatible form
2 parents eba46f0 + ced0546 commit c0794a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/directives/spec_change.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ func sourcePatchOperationAfterLoop(req *sourcePatchOperationAfterLoopRequest) (b
107107
*req.newLines = append(*req.newLines, fmt.Sprintf("%s:%s%s", field, spaces, file.Name))
108108

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

0 commit comments

Comments
 (0)