fedora-dists-2.1.0: Library for Fedora distribution versions
Copyright(C) 2014-2021 Jens Petersen
MaintainerJens Petersen <petersen@fedoraproject.org>
Safe HaskellNone
LanguageHaskell2010

Distribution.Fedora

Description

 
Synopsis

Documentation

data Dist Source #

The Dist datatype specifies the target OS and version. (roughly corresponds to a git branch)

Constructors

RHEL Version

RHEL version

EPEL Int

EPEL release

EPELNext Int

EPEL Next release

Fedora Int

Fedora release

Instances

Instances details
Eq Dist Source # 
Instance details

Defined in Distribution.Fedora

Methods

(==) :: Dist -> Dist -> Bool

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

Ord Dist Source # 
Instance details

Defined in Distribution.Fedora

Methods

compare :: Dist -> Dist -> Ordering

(<) :: Dist -> Dist -> Bool

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

(>) :: Dist -> Dist -> Bool

(>=) :: Dist -> Dist -> Bool

max :: Dist -> Dist -> Dist

min :: Dist -> Dist -> Dist

Read Dist Source #

Read from eg "f35", "epel8"

Instance details

Defined in Distribution.Fedora

Methods

readsPrec :: Int -> ReadS Dist

readList :: ReadS [Dist]

readPrec :: ReadPrec Dist

readListPrec :: ReadPrec [Dist]

Show Dist Source # 
Instance details

Defined in Distribution.Fedora

Methods

showsPrec :: Int -> Dist -> ShowS

show :: Dist -> String

showList :: [Dist] -> ShowS

getReleaseIds :: IO [Text] Source #

gets list of current releases (Fedora and EPEL)

The data is stored in ~.fedoraproduct-versions.json and refreshed from Fedora PDC if older than 5.5 hours

getFedoraReleaseIds :: IO [Text] Source #

gets current Fedora releases

getFedoraDists :: IO [Dist] Source #

get list of current Fedora Dist's

getEPELReleaseIds :: IO [Text] Source #

gets current EPEL releases

getRawhideDist :: IO Dist Source #

get current Dist for Fedora Rawhide

getLatestFedoraDist :: IO Dist Source #

get newest Fedora branch

getLatestEPELDist :: IO Dist Source #

get newest EPEL release

rawhideVersionId :: Text Source #

Rawhide version id

distBranch Source #

Arguments

:: Dist

latest branch

-> Dist 
-> String 

Maps Dist to package dist-git branch name, relative to latest branch

distBranch (Fedora 35) (Fedora 36) == "rawhide"
distBranch (Fedora 35) (Fedora 34) == "f34"

distRepo :: Dist -> Dist -> String Source #

Map Dist to DNF/YUM repo name, relative to latest branch

distUpdates :: Dist -> Dist -> Maybe String Source #

Map Dist to Maybe the DNF/YUM updates repo name, relative to latest branch

distOverride :: Dist -> Dist -> Bool Source #

Whether dist has overrides in Bodhi, relative to latest branch

mockConfig :: Dist -> Dist -> String -> String Source #

Mock configuration for Dist and arch, relative to latest branch

distVersion :: Dist -> Dist -> String Source #

OS release major version for Dist, relative to latest branch

kojicmd :: Dist -> String Source #

Command line tool for Dist (eg "koji")

rpkg :: Dist -> String Source #

rpkg command for Dist (eg "fedpkg")

rpmDistTag :: Dist -> String Source #

Dist tag (appended to rpm package release field)