Skip to content

Commit

Permalink
fixup! internal/rpm: new iterator-based rpm package
Browse files Browse the repository at this point in the history
Rename to NERVA to NEVRA
  • Loading branch information
BradLugo committed Feb 24, 2025
1 parent d9d5f87 commit c1346ba
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 20 deletions.
20 changes: 0 additions & 20 deletions internal/rpm/nerva.go

This file was deleted.

12 changes: 12 additions & 0 deletions internal/rpm/nevra.go
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
}

0 comments on commit c1346ba

Please sign in to comment.