mirror of
https://github.com/rocky-linux/srpmproc.git
synced 2024-12-04 18:36:26 +00:00
Try two modulemd paths before failing
This commit is contained in:
parent
c84bb1d953
commit
d2b071e239
@ -239,7 +239,11 @@ func patchModuleYaml(pd *data.ProcessData, md *data.ModeData) {
|
||||
mdTxtPath := "SOURCES/modulemd.src.txt"
|
||||
f, err := md.Worktree.Filesystem.Open(mdTxtPath)
|
||||
if err != nil {
|
||||
log.Fatalf("could not open modulemd file: %v", err)
|
||||
mdTxtPath = "SOURCES/modulemd.txt"
|
||||
f, err = md.Worktree.Filesystem.Open(mdTxtPath)
|
||||
if err != nil {
|
||||
log.Fatalf("could not open modulemd file: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
content, err := ioutil.ReadAll(f)
|
||||
|
Loading…
Reference in New Issue
Block a user