dnf

package
v1.5.48 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package dnf interfaces with dnf 4 and 5 history databases to extract repoid information.

This package tries to use "repoid" when referring to a dnf repository's ID, to help distinguish it from a claircore.Repository ID.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindRepoids

func FindRepoids(ctx context.Context, sys fs.FS) ([]string, error)

FindRepoids reports all the repoids discovered in the dnf history database in the provided fs.FS.

Types

type PackageSeq

type PackageSeq = iter.Seq2[claircore.Package, error]

PackageSeq is an alias for the Package iterator type.

func Wrap

func Wrap(ctx context.Context, sys fs.FS, seq PackageSeq) (PackageSeq, error)

Wrap closes over the passed fs.FS and PackageSeq and returns a PackageSeq that annotates the [claircore.Package]s with the dnf repoid.

Notes

Bugs

  • The dnf mapping is less useful than it could be because there's no reliable way to turn the "repoid" that it reports into something with meaning outside of the Red Hat build system's builder's context. See CLAIRDEV-45 for more information.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL