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 6dd988d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions listener/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -601,15 +601,15 @@ 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)
return repos, repoPaths
Expand Down

0 comments on commit 6dd988d

Please sign in to comment.