Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
A library for pkgtreediff for comparing trees of rpm packages
Synopsis
- data RpmPackage = RpmPkg {}
- readRpmPkg :: Text -> RpmPackage
- showRpmPkg :: RpmPackage -> Text
- rpmPkgIdent :: RpmPackage -> Text
- appendArch :: RpmPackage -> Text
- dropRpmArch :: RpmPackage -> RpmPackage
- rpmPkgVerRel :: RpmPackage -> Text
- data RpmPackageDiff
- diffPkgs :: Ignore -> [RpmPackage] -> [RpmPackage] -> [RpmPackageDiff]
- diffPkg :: Ignore -> RpmPackage -> RpmPackage -> Maybe RpmPackageDiff
- data Ignore
- data Mode
- = AutoSummary
- | NoSummary
- | ShowSummary
- | Added
- | Deleted
- | Updated
- | RST
Documentation
data RpmPackage Source #
RPM package with name, version-release, and maybe architecture
Instances
Eq RpmPackage Source # | |
Defined in Distribution.RPM.PackageTreeDiff (==) :: RpmPackage -> RpmPackage -> Bool # (/=) :: RpmPackage -> RpmPackage -> Bool # | |
Ord RpmPackage Source # | |
Defined in Distribution.RPM.PackageTreeDiff compare :: RpmPackage -> RpmPackage -> Ordering # (<) :: RpmPackage -> RpmPackage -> Bool # (<=) :: RpmPackage -> RpmPackage -> Bool # (>) :: RpmPackage -> RpmPackage -> Bool # (>=) :: RpmPackage -> RpmPackage -> Bool # max :: RpmPackage -> RpmPackage -> RpmPackage # min :: RpmPackage -> RpmPackage -> RpmPackage # |
readRpmPkg :: Text -> RpmPackage Source #
Parse an RpmPackage
showRpmPkg :: RpmPackage -> Text Source #
Render an RpmPackage
rpmPkgIdent :: RpmPackage -> Text Source #
Text identifier for an RPM package identified by name and arch
appendArch :: RpmPackage -> Text Source #
Helper to add an arch suffix
dropRpmArch :: RpmPackage -> RpmPackage Source #
drop arch from RpmPackage
rpmPkgVerRel :: RpmPackage -> Text Source #
Text for the version-release of an RpmPackage
data RpmPackageDiff Source #
RpmPackageDiff type encodes how a particular rpm package differs between trees
Instances
Eq RpmPackageDiff Source # | |
Defined in Distribution.RPM.PackageTreeDiff (==) :: RpmPackageDiff -> RpmPackageDiff -> Bool # (/=) :: RpmPackageDiff -> RpmPackageDiff -> Bool # |
diffPkgs :: Ignore -> [RpmPackage] -> [RpmPackage] -> [RpmPackageDiff] Source #
Compare two lists of packages NVRs
diffPkg :: Ignore -> RpmPackage -> RpmPackage -> Maybe RpmPackageDiff Source #
Compare two rpms of a package
Ignore describes how comparison is done
IgnoreNone | do not ignore version or release |
IgnoreRelease | ignore differences in release |
IgnoreVersion | ignore differences in version |