debian-3.47: Modules for working with the Debian package systemSource codeContentsIndex
Debian.Report
Contents
General Package Map Builders
Trump Report
Synopsis
makePackageMap :: (Paragraph -> a) -> (a -> a -> a) -> [(FilePath, Compression)] -> IO (Map ByteString a)
packageMap :: (Paragraph -> a) -> (a -> a -> a) -> Control -> Map ByteString a
extractVersion :: Paragraph -> Maybe DebianVersion
trumped :: Fetcher -> FilePath -> String -> [DebSource] -> [DebSource] -> IO (Map ByteString (DebianVersion, DebianVersion))
trumpedMap :: Map ByteString DebianVersion -> Map ByteString DebianVersion -> Map ByteString (DebianVersion, DebianVersion)
trumpedXML :: Map ByteString (DebianVersion, DebianVersion) -> CFilter
General Package Map Builders
makePackageMap :: (Paragraph -> a) -> (a -> a -> a) -> [(FilePath, Compression)] -> IO (Map ByteString a)Source

create a map of (package name, extracted field) from a list of index files

NOTE: we could merge all the files into a single control and then run packageMap over that. We currently do it one control file at a time to avoid having all the control files loaded in memory at once. However, I am not sure that property is actually occuring anyway. So, this should be revisited.

packageMap :: (Paragraph -> a) -> (a -> a -> a) -> Control -> Map ByteString aSource
create a map of (package name, max version) from a single control file
extractVersion :: Paragraph -> Maybe DebianVersionSource
extract the version number from a control paragraph
Trump Report
trumpedSource
:: Fetcherfunction for downloading package indexes
-> FilePathcache directory to store index files in (must already exist)
-> Stringbinary architecture
-> [DebSource]sources.list a
-> [DebSource]sources.list b
-> IO (Map ByteString (DebianVersion, DebianVersion))a map of trumped package names to (version a, version b)
compare two sources.list and find all the packages in the second that trump packages in the first see also: |trumpedMap|
trumpedMapSource
:: Map ByteString DebianVersionpackage map a
-> Map ByteString DebianVersionpackage map b
-> Map ByteString (DebianVersion, DebianVersion)trumped packages (version a, version b)
calculate all the trumped packages
trumpedXML :: Map ByteString (DebianVersion, DebianVersion) -> CFilterSource
create trumped / XML element and children from a trumped Map
Produced by Haddock version 2.6.1