mirror of
https://github.com/rocky-linux/srpmproc.git
synced 2024-06-02 08:10:17 +00:00
fix file creating patches
This commit is contained in:
parent
5591a21ed9
commit
1f0742889d
|
@ -287,6 +287,10 @@ func ProcessRPM(pd *ProcessData) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("could not create new file: %v", err)
|
log.Fatalf("could not create new file: %v", err)
|
||||||
}
|
}
|
||||||
|
err = gitdiff.NewApplier(newFile).ApplyFile(&output, patchedFile)
|
||||||
|
if err != nil {
|
||||||
|
log.Fatalf("could not apply patch: %v", err)
|
||||||
|
}
|
||||||
_, err = newFile.Write(output.Bytes())
|
_, err = newFile.Write(output.Bytes())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("could not write post-patch file: %v", err)
|
log.Fatalf("could not write post-patch file: %v", err)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user