mirror of
https://github.com/rocky-linux/srpmproc.git
synced 2024-06-02 08:10:17 +00:00
Force stream name to be the same as in branch
This commit is contained in:
parent
2b2a74c337
commit
32af526744
|
@ -252,6 +252,12 @@ func patchModuleYaml(pd *data.ProcessData, md *data.ModeData) {
|
||||||
log.Fatalf("could not parse modulemd file: %v", err)
|
log.Fatalf("could not parse modulemd file: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Get stream branch from tag
|
||||||
|
match := tagImportRegex.FindStringSubmatch(md.TagBranch)
|
||||||
|
streamBranch := strings.Split(match[2], "-")
|
||||||
|
// Force stream to be the same as stream name in branch
|
||||||
|
module.Data.Stream = streamBranch[len(streamBranch)-1]
|
||||||
|
|
||||||
log.Println("This module contains the following rpms:")
|
log.Println("This module contains the following rpms:")
|
||||||
for name := range module.Data.Components.Rpms {
|
for name := range module.Data.Components.Rpms {
|
||||||
log.Printf("\t- %s", name)
|
log.Printf("\t- %s", name)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user