-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixup! internal/rpm: new iterator-based rpm package
Rename to NERVA to NEVRA
- Loading branch information
Showing
2 changed files
with
12 additions
and
20 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package rpm | ||
|
||
import ( | ||
"github.com/quay/claircore" | ||
) | ||
|
||
// NEVRA returns an rpm NEVRA for the package "p", assuming that the | ||
// [Package.Version] is an EVR string. This should hold true for all | ||
// [claircore.Package] instances returned by this package. | ||
func NEVRA(p *claircore.Package) string { | ||
return p.Name + "-" + p.Version + "." + p.Arch | ||
} |