debian-3.33: Modules for working with the Debian package systemSource codeContentsIndex
Debian.Apt.Package
Description
Functions for dealing with source and binary packages in an abstract-way
Synopsis
type PackageNameMap a = Map String [a]
packageNameMap :: (a -> String) -> [a] -> PackageNameMap a
addProvides :: (p -> [PkgName]) -> [p] -> PackageNameMap p -> PackageNameMap p
findProvides :: forall p. (p -> [PkgName]) -> [p] -> [(PkgName, p)]
lookupPackageByRel :: PackageNameMap a -> (a -> (String, DebianVersion)) -> Relation -> [a]
Documentation
type PackageNameMap a = Map String [a]Source
packageNameMap :: (a -> String) -> [a] -> PackageNameMap aSource
packageNameMap creates a map from a package name to all the versions of that package NOTE: Provides are not included in the map NOTE: the sort order is random -- this is perhaps a bug see also: addProvides
addProvides :: (p -> [PkgName]) -> [p] -> PackageNameMap p -> PackageNameMap pSource
addProvides finds packages that Provide other packages and adds them to the PackageNameMap. They will be adde to the end of the list, so that real packages have 'higher priority' than virtual packages. NOTE: Does not check for duplication or multiple use
findProvides :: forall p. (p -> [PkgName]) -> [p] -> [(PkgName, p)]Source
findProvides
lookupPackageByRel :: PackageNameMap a -> (a -> (String, DebianVersion)) -> Relation -> [a]Source
lookupPackageByRel returns all the packages that satisfy the specified relation TODO: Add architecture check
Produced by Haddock version 2.4.2