mirror of
https://github.com/rocky-linux/srpmproc.git
synced 2024-12-27 04:20:54 +00:00
Merge pull request #25 from rocky-linux/fix/deprecated_patch_format
Change patch directive to maximum compatible form
This commit is contained in:
commit
c0794a01b1
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue