Skip to content

Commit

Permalink
fix: check whether pkg update exists in enabled repo
Browse files Browse the repository at this point in the history
  • Loading branch information
psegedy authored and jdobes committed Jul 4, 2023
1 parent c821eb7 commit ba3b4cc
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions vmaas/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,19 @@ func pkgErrataUpdates(c *Cache, pkgID PkgID, erratumID ErratumID, modules map[in

repos := filterErrataRepos(c, erratumID, repoIDs)
for _, r := range repos {
// filter out update package if it does not exist in the enabled repo
pkgInRepo := false
pkgRepos := c.PkgID2RepoIDs[pkgID]
for _, pkgRepo := range pkgRepos {
if r == pkgRepo {
pkgInRepo = true
break
}
}
if !pkgInRepo {
return
}

details := c.RepoDetails[r]
updates <- Update{
Package: nevra.String(),
Expand Down

0 comments on commit ba3b4cc

Please sign in to comment.