This module makes a database out a directory ${repo} containing subdirs ${repo}/${package} corresponding to packages. It can output rebuild lists in reverse dependency order.
- data SrcRepo = SrcRepo {}
- getPkgFromDir :: FilePath -> IO PkgBuild
- getRepoFromDir :: FilePath -> IO (Maybe SrcRepo)
- insertpkg :: Map String PkgBuild -> FilePath -> IO (Map String PkgBuild)
- dumpContentsTopo :: SrcRepo -> [String]
- archProvidedPkgs :: [String]
- isExternalDep :: String -> SrcRepo -> Bool
- trueDepends :: PkgBuild -> SrcRepo -> [String]
- strDepends :: PkgBuild -> [String]
- getDependencies :: String -> SrcRepo -> [String]
- getDependencyRepo :: String -> SrcRepo -> SrcRepo
- getReverseDependencies :: [String] -> SrcRepo -> [String]
- getReverseDependencyRepo :: [String] -> SrcRepo -> SrcRepo
- isConflicting :: SrcRepo -> Bool
- listVersionConflicts :: SrcRepo -> [String]
- isConflictingWith :: PkgBuild -> SrcRepo -> Bool
- isSatisfiedBy :: ArchDep -> SrcRepo -> Maybe Bool
Documentation
Data type for source repositories
getPkgFromDir :: FilePath -> IO PkgBuildSource
Reads a directory into a package
getRepoFromDir :: FilePath -> IO (Maybe SrcRepo)Source
Reads a specified path into a SrcRepo structure
dumpContentsTopo :: SrcRepo -> [String]Source
Dumps a topologically sorted list of packages starting with an optionally given key
isExternalDep :: String -> SrcRepo -> BoolSource
Helper function
trueDepends :: PkgBuild -> SrcRepo -> [String]Source
strDepends :: PkgBuild -> [String]Source
Enumerate all build-time dependencies for a package
getDependencies :: String -> SrcRepo -> [String]Source
Output the recursive dependencies of a package in topological order
getDependencyRepo :: String -> SrcRepo -> SrcRepoSource
Extract the subrepository of recursive dependencies of a package
getReverseDependencies :: [String] -> SrcRepo -> [String]Source
Output reverse dependencies of a list of packages in topological order
getReverseDependencyRepo :: [String] -> SrcRepo -> SrcRepoSource
Extract reverse dependencies of a list of packages
isConflicting :: SrcRepo -> BoolSource
Find version inconsistencies in a repository
listVersionConflicts :: SrcRepo -> [String]Source
isConflictingWith :: PkgBuild -> SrcRepo -> BoolSource
Check package dependencies against the repo