We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9d5f87 commit c1346baCopy full SHA for c1346ba
internal/rpm/nerva.go
internal/rpm/nevra.go
@@ -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