Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data Select
- selectDefault :: Select
- selectRpmsOptions :: Parser Select
- installArgs :: String -> Select
- checkSelection :: Monad m => Select -> m ()
- rpmsToNVRAs :: [String] -> [NVRA]
- data Existence
- type ExistNVRA = (Existence, NVRA)
- data Yes
- data ExistingStrategy
- existingStrategyOption :: Parser ExistingStrategy
- decideRPMs :: Yes -> Bool -> Maybe ExistingStrategy -> Select -> String -> [NVRA] -> IO [ExistNVRA]
- nvraToRPM :: NVRA -> FilePath
- groupOnArch :: FilePath -> [ExistNVRA] -> [(FilePath, [ExistNVRA])]
- data PkgMgr
- installRPMs :: Bool -> Bool -> Maybe PkgMgr -> Yes -> [(FilePath, [ExistNVRA])] -> IO ()
Documentation
selectDefault :: Select Source #
default package selection
selectRpmsOptions :: Parser Select Source #
optparse-applicative Parser for Select
installArgs :: String -> Select Source #
alternative CLI args option parsing to Select packages
checkSelection :: Monad m => Select -> m () Source #
check package Select is not empty
rpmsToNVRAs :: [String] -> [NVRA] Source #
converts a list of RPM files to NVRA's, filtering out debug subpackages
current state of a package NVR
ExistingNVR | NVR is already installed |
ChangedNVR | NVR is different to installed package |
NotInstalled | package is not currently installed |
sets prompt default behaviour for yes/no questions
data ExistingStrategy Source #
how to handle already installed packages: re-install, skip, or default update
The default strategy is to select existing subpackages, otherwise all.
Instances
Eq ExistingStrategy Source # | |
Defined in SelectRPMs (==) :: ExistingStrategy -> ExistingStrategy -> Bool # (/=) :: ExistingStrategy -> ExistingStrategy -> Bool # |
:: Yes | prompt default choice |
-> Bool | enable list mode which just display the package list |
-> Maybe ExistingStrategy | optional existing install strategy |
-> Select | specifies package Select choices |
-> String | package set prefix: allows abbreviated Select |
-> [NVRA] | list of packages to select from |
-> IO [ExistNVRA] | returns list of selected packages |
decide list of NVRs based on a Select selection (using a package prefix)
group rpms by arch (subdirs)
package manager