From 1f0742889d1843b49d61e0edb316fd975418f994 Mon Sep 17 00:00:00 2001 From: Mustafa Gezen Date: Wed, 16 Dec 2020 14:25:42 +0100 Subject: [PATCH] fix file creating patches --- internal/process.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/process.go b/internal/process.go index 056fc92..5cfa448 100644 --- a/internal/process.go +++ b/internal/process.go @@ -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)