Skip to content

Commit c1346ba

Browse files
committed
fixup! internal/rpm: new iterator-based rpm package
Rename to NERVA to NEVRA
1 parent d9d5f87 commit c1346ba

File tree

2 files changed

+12
-20
lines changed

2 files changed

+12
-20
lines changed

internal/rpm/nerva.go

-20
This file was deleted.

internal/rpm/nevra.go

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package rpm
2+
3+
import (
4+
"github.com/quay/claircore"
5+
)
6+
7+
// NEVRA returns an rpm NEVRA for the package "p", assuming that the
8+
// [Package.Version] is an EVR string. This should hold true for all
9+
// [claircore.Package] instances returned by this package.
10+
func NEVRA(p *claircore.Package) string {
11+
return p.Name + "-" + p.Version + "." + p.Arch
12+
}

0 commit comments

Comments
 (0)