debian-4.0.5: Modules for working with the Debian package system
Safe HaskellSafe-Inferred
LanguageHaskell2010

Debian.Apt.Methods

Description

an interface for using the methods in varlibaptmethods

Synopsis

Documentation

withMethodPath :: FilePath -> (MethodHandle -> IO a) -> IO a Source #

withMethod - run |methodPath| bracketed with openMethod/closeMethod. |f| gets the open handle.

withMethodURI :: URI -> (MethodHandle -> IO a) -> IO a Source #

whichMethodPath :: URI -> IO (Maybe FilePath) Source #

whichMethodBinary - find the method executable associated with a URI throws an exception on failure

openMethod :: FilePath -> IO MethodHandle Source #

closeMethod :: MethodHandle -> IO ExitCode Source #

recvStatus :: MethodHandle -> IO Status Source #

sendCommand :: MethodHandle -> Command -> IO () Source #

fetch :: FetchCallbacks -> [ConfigItem] -> URI -> FilePath -> Maybe UTCTime -> IO Bool Source #

fetch a single item, show console output see also: getLastModified

emptyFetchCallbacks :: FetchCallbacks Source #

set of callbacks which do nothing. suitable for non-interactive usage. In the case authorization is required, no credentials will be supplied and the download should abort.

data Command Source #

Instances

Instances details
Show Command Source # 
Instance details

Defined in Debian.Apt.Methods

Eq Command Source # 
Instance details

Defined in Debian.Apt.Methods

Methods

(==) :: Command -> Command -> Bool #

(/=) :: Command -> Command -> Bool #