Copyright | (C) 2020-20222024 Jens Petersen |
---|---|
Maintainer | Jens Petersen <petersen@fedoraproject.org> |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data Branch
- readBranch :: String -> Maybe Branch
- eitherBranch :: String -> Either String Branch
- readActiveBranch :: [Branch] -> String -> Maybe Branch
- eitherActiveBranch :: [Branch] -> String -> Either String Branch
- newerBranch :: Branch -> [Branch] -> Branch
- getFedoraBranches :: IO [Branch]
- getFedoraBranched :: IO [Branch]
- getLatestFedoraBranch :: IO Branch
- branchDestTag :: Branch -> String
- branchDistTag :: Branch -> IO String
- branchRelease :: Branch -> IO Release
- branchTarget :: Branch -> String
- 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
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] -> Branch Source #
Returns newer branch than given one from supplied active branches.
Branches should be in descending order, eg from getFedoraBranches
getFedoraBranches :: IO [Branch] Source #
Returns list of active Fedora branches, including rawhide and EPEL
getFedoraBranched :: IO [Branch] Source #
Returns list of active Fedora branches, excluding rawhide
getLatestFedoraBranch :: IO Branch Source #
get newest Fedora branched Release
branchDestTag :: Branch -> String Source #
Map Branch to Koji destination tag
branchDistTag :: Branch -> IO String Source #
Get %dist tag for branch
branchRelease :: Branch -> IO Release Source #
Get Release associated with release Branch
branchTarget :: Branch -> String Source #
Default build target associated with a branch
partitionBranches :: [String] -> ([Branch], [String]) Source #
separate fedora branches from rest of args