debian-3.23: Modules for working with the Debian package systemSource codeContentsIndex
Debian.Repo.Insert
Description
Insert packages into a release, remove packages from a release.
Synopsis
scanIncoming :: CIO m => Bool -> Maybe PGPKey -> LocalRepository -> AptIOT m ([ChangesFile], [(ChangesFile, InstallResult)])
data InstallResult
= Ok
| Failed [Problem]
| Rejected [Problem]
deleteTrumped :: CIO m => Maybe PGPKey -> [Release] -> m [Release]
deleteGarbage :: CIO m => LocalRepository -> AptIOT m LocalRepository
deleteSourcePackages :: CIO m => Maybe PGPKey -> [PackageIDLocal] -> m [Release]
resultToProblems :: InstallResult -> [Problem]
showErrors :: [InstallResult] -> String
explainError :: Problem -> String
Documentation
scanIncoming :: CIO m => Bool -> Maybe PGPKey -> LocalRepository -> AptIOT m ([ChangesFile], [(ChangesFile, InstallResult)])Source
Find the .changes files in the incoming directory and try to process each.
data InstallResult Source
Constructors
Ok
Failed [Problem]
Rejected [Problem]
show/hide Instances
deleteTrumped :: CIO m => Maybe PGPKey -> [Release] -> m [Release]Source
Delete any packages from a dist which are trumped by newer packages. These packages are not garbage because they can still be installed by explicitly giving their version number to apt.
deleteGarbage :: CIO m => LocalRepository -> AptIOT m LocalRepositorySource
Collect files that no longer appear in any package index and move them to the removed directory. The .changes files are treated specially: they don't appear in any index files, but the package they belong to can be constructed from their name.
deleteSourcePackages :: CIO m => Maybe PGPKey -> [PackageIDLocal] -> m [Release]Source
Although the PackageID type could refer to source or binary packages, we only export the function to remove source packages. This is in order to avoid leaving around references to removed binary packages in the source index.
resultToProblems :: InstallResult -> [Problem]Source
showErrors :: [InstallResult] -> StringSource
explainError :: Problem -> StringSource
Produced by Haddock version 2.4.2