Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data Select
- selectDefault :: Select
- selectRpmsOption :: Parser Select
- installArgs :: String -> Select
- checkSelection :: Monad m => Select -> m ()
- rpmsToNVRAs :: [String] -> [NVRA]
- data Existence
- type ExistNVRA = (Existence, NVRA)
- data Yes
- data 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
The Select type specifies the subpackage selection
selectDefault :: Select Source #
default package selection
selectRpmsOption :: 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 or skip
:: 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