Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module provides dependency sorting functions
import Distribution.RPM.Build.Order
dependencySort
["pkg1", "pkg2", "../pkg3"]
=> ["pkg2", "../pkg3", "pkg1"]
where pkg1 depends on pkg3, which depends on pkg2 say.
Package paths can be directories or spec files.
Synopsis
- dependencySort :: [FilePath] -> IO [FilePath]
- dependencySortRpmOpts :: [String] -> [FilePath] -> IO [FilePath]
- dependencySortParallel :: [FilePath] -> IO [[FilePath]]
- dependencyLayers :: [FilePath] -> IO [[FilePath]]
- leafPackages :: [FilePath] -> IO [FilePath]
- independentPackages :: [FilePath] -> IO [FilePath]
- data Components
- sortGraph :: Components -> PackageGraph -> IO ()
Documentation
dependencySortRpmOpts :: [String] -> [FilePath] -> IO [FilePath] Source #
sort packages by dependencies with rpm options
Since: 0.4.2
dependencySortParallel :: [FilePath] -> IO [[FilePath]] Source #
dependency sort of packages in graph components
dependencyLayers :: [FilePath] -> IO [[FilePath]] Source #
group packages in dependency layers, lowest first
independentPackages :: [FilePath] -> IO [FilePath] Source #
returns independent packages among a set of packages
data Components Source #
Used to control the output from sortGraph
sortGraph :: Components -> PackageGraph -> IO () Source #
output sorted packages from a PackageGraph arrange by Components