mirror of
https://github.com/rocky-linux/srpmproc.git
synced 2024-06-02 08:10:17 +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")
|
log.Fatal("could not recognize modulemd ref")
|
||||||
}
|
}
|
||||||
|
|
||||||
rpm.Ref = pushBranch
|
|
||||||
tipHash = getTipStream(pd, name, pushBranch, md.PushBranch, 0)
|
tipHash = getTipStream(pd, name, pushBranch, md.PushBranch, 0)
|
||||||
if tipHash == "0000000000000000000000000000000000000000" {
|
if tipHash == "0000000000000000000000000000000000000000" {
|
||||||
pushBranch = defaultBranch
|
pushBranch = defaultBranch
|
||||||
rpm.Ref = pushBranch
|
|
||||||
tipHash = getTipStream(pd, name, pushBranch, md.PushBranch, 0)
|
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
|
rpm.Ref = tipHash
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user