Copyright | (C) 2020 Jens Petersen |
---|---|
Maintainer | Jens Petersen <petersen@fedoraproject.org> |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- data Branch
- readBranch :: String -> Maybe Branch
- readBranch' :: String -> Branch
- eitherBranch :: String -> Either String Branch
- eitherBranch' :: String -> Either String Branch
- readActiveBranch :: [Branch] -> String -> Maybe Branch
- readActiveBranch' :: [Branch] -> String -> Branch
- eitherActiveBranch :: [Branch] -> String -> Either String Branch
- newerBranch :: Branch -> [Branch] -> Branch
- releaseBranch :: Text -> Branch
- getFedoraBranches :: IO [Branch]
- getFedoraBranched :: IO [Branch]
- branchDestTag :: Branch -> String
- branchDist :: Branch -> IO Dist
- branchTarget :: Branch -> String
Documentation
Branch datatype
Branch can be rawhide, or a fedora or epel branch
readBranch' :: String -> Branch Source #
Unsafely read a Fedora Branch name: errors for unknown branches
eitherBranch :: String -> Either String Branch Source #
Read a Fedora Branch name, otherwise return branch string
eitherBranch' :: String -> Either String Branch Source #
Read a Fedora Branch name, otherwise return an error message
readActiveBranch :: [Branch] -> String -> Maybe Branch Source #
Read a Branch name (one of the list of active branches)
Similar to eitherActiceBranch but ignores any error string
readActiveBranch' :: [Branch] -> String -> Branch Source #
Read a Branch name (one of the list of active branches)
Like readActiveBranch, but errors for inactive or unknown branches.
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
releaseBranch :: Text -> Branch Source #
Maps release-id to Branch
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
branchDestTag :: Branch -> String Source #
Map Branch to Koji destination tag
branchTarget :: Branch -> String Source #
Default build target associated with a branch