fedora-releases-0.1.0: Library for Fedora release versions
Copyright(C) 2020-20222024 Jens Petersen
MaintainerJens Petersen <petersen@fedoraproject.org>
Safe HaskellSafe-Inferred
LanguageHaskell2010

Distribution.Fedora.Branch

Description

 
Synopsis

Documentation

data Branch Source #

Branch datatype

Branch can be rawhide, or a fedora or epel branch

Constructors

EPEL !Int 
EPELNext !Int 
Fedora !Int 
Rawhide 

Instances

Instances details
Show Branch Source # 
Instance details

Defined in Distribution.Fedora.Branch

Methods

showsPrec :: Int -> Branch -> ShowS

show :: Branch -> String

showList :: [Branch] -> ShowS

Eq Branch Source # 
Instance details

Defined in Distribution.Fedora.Branch

Methods

(==) :: Branch -> Branch -> Bool

(/=) :: Branch -> Branch -> Bool

Ord Branch Source # 
Instance details

Defined in Distribution.Fedora.Branch

Methods

compare :: Branch -> Branch -> Ordering

(<) :: Branch -> Branch -> Bool

(<=) :: Branch -> Branch -> Bool

(>) :: Branch -> Branch -> Bool

(>=) :: Branch -> Branch -> Bool

max :: Branch -> Branch -> Branch

min :: Branch -> Branch -> 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