Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
The module provides a Branch type for Fedora and EPEL for active Release's.
Synopsis
- data Branch
- readBranch :: String -> Maybe Branch
- showBranch :: Branch -> String
- eitherBranch :: String -> Either String Branch
- readActiveBranch :: [Branch] -> String -> Maybe Branch
- eitherActiveBranch :: [Branch] -> String -> Either String Branch
- newerBranch :: Branch -> [Branch] -> Maybe Branch
- getActiveBranches :: IO [Branch]
- getActiveBranched :: IO [Branch]
- getLatestFedoraBranch :: IO Branch
- branchDestTag :: Branch -> IO String
- branchDistTag :: Branch -> IO String
- branchRelease :: Branch -> IO Release
- partitionBranches :: [String] -> ([Branch], [String])
Documentation
Branch datatype
Branch can be rawhide, or a fedora or epel branch
readBranch :: String -> Maybe Branch Source #
Read a Fedora Branch name
showBranch :: Branch -> String Source #
render Branch to String
eitherBranch :: String -> Either String Branch Source #
Read a Fedora Branch name, otherwise return branch string
readActiveBranch :: [Branch] -> String -> Maybe Branch Source #
Read a Branch name (one of the list of active branches)
Similar to eitherActiveBranch but ignores any error string
eitherActiveBranch :: [Branch] -> String -> Either String Branch Source #
Read a Branch name (one of the list of active branches)
Provides error strings for inactive or unknown branches.
newerBranch :: Branch -> [Branch] -> Maybe Branch Source #
Returns newer branch than given one from supplied active branches.
Branches should be in descending order, eg from getFedoraBranches
getActiveBranches :: IO [Branch] Source #
Returns descending list of active Fedora branches, including rawhide and EPEL
getActiveBranched :: IO [Branch] Source #
Returns list of active Fedora branches, excluding rawhide
getLatestFedoraBranch :: IO Branch Source #
get newest Fedora branched Release
branchDestTag :: Branch -> IO String Source #
Map Branch to Koji destination tag (candidate tag)
branchDistTag :: Branch -> IO String Source #
Converts koji dist tag to rpm %dist tag for branch
f41 -> .fc41
epel10.0 -> .el10_0
branchRelease :: Branch -> IO Release Source #
Get Release associated with release Branch
Fails if given an inactive branch
partitionBranches :: [String] -> ([Branch], [String]) Source #
separate fedora branches from rest of args