fix file creating patches

This commit is contained in:
Mustafa Gezen 2020-12-16 14:25:42 +01:00
parent 5591a21ed9
commit 1f0742889d

View File

@ -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)