debian-3.91.2: Modules for working with the Debian package system

Safe HaskellNone
LanguageHaskell98

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.