pkgtreediff-0.4.1: Package tree diff tool
Safe HaskellSafe-Inferred
LanguageHaskell2010

Distribution.RPM.PackageTreeDiff

Description

A library for pkgtreediff for comparing trees of rpm packages

Synopsis

Documentation

data RpmPackage Source #

RPM package with name, version-release, and maybe architecture

Constructors

RpmPkg 

Fields

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

Instances details
Eq RpmPackageDiff Source # 
Instance details

Defined in Distribution.RPM.PackageTreeDiff

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

data Ignore Source #

Ignore describes how comparison is done

Constructors

IgnoreNone

do not ignore version or release

IgnoreRelease

ignore differences in release

IgnoreVersion

ignore differences in version

Instances

Instances details
Eq Ignore Source # 
Instance details

Defined in Distribution.RPM.PackageTreeDiff

Methods

(==) :: Ignore -> Ignore -> Bool #

(/=) :: Ignore -> Ignore -> Bool #

data Mode Source #

Mode describes the kind of summary generated by compareDirs

Instances

Instances details
Eq Mode Source # 
Instance details

Defined in Distribution.RPM.PackageTreeDiff

Methods

(==) :: Mode -> Mode -> Bool #

(/=) :: Mode -> Mode -> Bool #