Stop modifying the modulemd src

This commit is contained in:
Mustafa Gezen 2021-04-25 13:27:48 +02:00
parent 6fb0ea1997
commit 5bbbfb8f82
1 changed files with 0 additions and 7 deletions

View File

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