fedora-releases-0.2.0: Library for Fedora release versions
Safe HaskellSafe-Inferred
LanguageHaskell2010

Distribution.Fedora.Branch

Description

The module provides a Branch type for Fedora and EPEL for active Release's.

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
Eq Branch Source # 
Instance details

Defined in Distribution.Fedora.Branch

Methods

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

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

Ord Branch Source #

defined such that: EPELNext 9 < EPEL 10 < Fedora 41 < Rawhide

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

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