Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
A type for a (binary) RPM package.
Documentation
RPM package with name, version-release, and architecture
If arch is not needed use NVR instead.
FIXME: add epoch field
readNVRA :: String -> NVRA Source #
Parse an NVRA with arch suffix
Errors if not of the form "name-version-release[.arch]"
eitherNVRA :: String -> Either String NVRA Source #
Either read a name-version-release.arch or return a failure string
showPkgIdent :: NVRA -> String Source #
Identifier for an RPM package identified by name and arch
showPkgVerRel :: NVRA -> String Source #
Render the version-release of an NVRA