From 5bbbfb8f82f666960b659a9b508d09e6ebb20a36 Mon Sep 17 00:00:00 2001 From: Mustafa Gezen Date: Sun, 25 Apr 2021 13:27:48 +0200 Subject: [PATCH] Stop modifying the modulemd src --- internal/patch.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/internal/patch.go b/internal/patch.go index 8fd22dc..0679730 100644 --- a/internal/patch.go +++ b/internal/patch.go @@ -295,19 +295,12 @@ func patchModuleYaml(pd *data.ProcessData, md *data.ModeData) { log.Fatal("could not recognize modulemd ref") } - rpm.Ref = pushBranch tipHash = getTipStream(pd, name, pushBranch, md.PushBranch, 0) if tipHash == "0000000000000000000000000000000000000000" { pushBranch = defaultBranch - rpm.Ref = pushBranch tipHash = getTipStream(pd, name, pushBranch, md.PushBranch, 0) } - err = module.Marshal(md.Worktree.Filesystem, mdTxtPath) - if err != nil { - log.Fatalf("could not marshal modulemd: %v", err) - } - rpm.Ref = tipHash }