Skip to content

Commit

Permalink
RHINENG-10440: use repository paths of enabled repos
Browse files Browse the repository at this point in the history
  • Loading branch information
psegedy committed Jun 12, 2024
1 parent 30a9ef6 commit 2964f00
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions listener/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -601,14 +601,13 @@ func processRepos(systemProfile *inventory.SystemProfile) ([]string, []string) {

if r.Enabled {
repos = append(repos, rID)
}

repoPath, err := getRepoPath(systemProfile, &r)
if err != nil {
utils.LogWarn("repo", rID, "mirrorlist", r.Mirrorlist, "base_url", r.BaseURL, "invalid repository_path")
}
if len(repoPath) > 0 {
repoPaths = append(repoPaths, repoPath)
repoPath, err := getRepoPath(systemProfile, &r)
if err != nil {
utils.LogWarn("repo", rID, "mirrorlist", r.Mirrorlist, "base_url", r.BaseURL, "invalid repository_path")
}
if len(repoPath) > 0 {
repoPaths = append(repoPaths, repoPath)
}
}
}
fixEpelRepos(systemProfile, repos)
Expand Down

0 comments on commit 2964f00

Please sign in to comment.