mirror of
https://github.com/rocky-linux/srpmproc.git
synced 2024-12-04 18:36:26 +00:00
Stop modifying the modulemd src
This commit is contained in:
parent
6fb0ea1997
commit
5bbbfb8f82
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user