Copyright | (c) 2016-2017 Red Hat Inc. |
---|---|
License | LGPL |
Maintainer | https://github.com/weldr |
Stability | alpha |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Functions for importing RPM packages from a repo into the database
- data RepoException
- loadFromURI :: URI -> ReaderT ImportState IO ()
- loadRepoFromURI :: URI -> ReaderT ImportState IO ()
Documentation
data RepoException Source #
An exception type that is thrown when there is a problem accessing a package repository or processing its metadata.
loadFromURI :: URI -> ReaderT ImportState IO () Source #
Given the URI
to a primary.xml file in some package repository, load all its RPMs
into the MDDB. This function must be run within the ReaderT
monad, which should be
given an ImportState
record. This is how importing knows where to store the results.
If the repo metadata data is invalid, a RepoException
will be thrown. Other errors
will be printed to the screen.
loadRepoFromURI :: URI -> ReaderT ImportState IO () Source #
Given the URI
to the base of some package repository, fetch its repo metadata and load
all its RPMs into the MDDB. This function must be run within the ReaderT
monad, which
should be given an ImportState
record. This is how importing knows where to store the
results. If the repo metadata data is invalid, a RepoException
will be thrown. Other
errors will be printed to the screen.