Skip to content

Commit 08c2d50

Browse files
committed
fixup! rhel: have repository scanner consult dnf
Signed-off-by: Hank Donnay <[email protected]> See-also: https://issues.redhat.com/browse/KONFLUX-6218
1 parent 614eac9 commit 08c2d50

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

rhel/repositoryscanner.go

+5
Original file line numberDiff line numberDiff line change
@@ -221,17 +221,22 @@ func (r *RepositoryScanner) Scan(ctx context.Context, l *claircore.Layer) ([]*cl
221221
}
222222

223223
pairs := func(yield func(string, string) bool) {
224+
var found bool
224225
for _, repoid := range repoids {
225226
cpes, ok := cm.GetOne(ctx, repoid)
226227
if !ok {
227228
continue
228229
}
230+
found = true
229231
for _, cpe := range cpes {
230232
if !yield(repoid, cpe) {
231233
return
232234
}
233235
}
234236
}
237+
if found {
238+
return
239+
}
235240

236241
if r.apiFetcher != nil {
237242
// Embedded content-sets are unavailable in very old images.

0 commit comments

Comments
 (0)