Commit 1f074288 authored by Mustafa Gezen's avatar Mustafa Gezen 🏗
Browse files

fix file creating patches

parent 5591a21e
......@@ -287,6 +287,10 @@ func ProcessRPM(pd *ProcessData) {
if err != nil {
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())
if err != nil {
log.Fatalf("could not write post-patch file: %v", err)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment