mirror of
https://github.com/rocky-linux/srpmproc.git
synced 2024-11-17 18:51:23 +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
@ -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 New Issue
Block a user