bdcs-0.1.0: Tools for managing a content store of software packages

Copyright(c) 2016-2017 Red Hat Inc.
LicenseLGPL
Maintainerhttps://github.com/weldr
Stabilityalpha
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

BDCS.Import.Repodata

Description

Functions for importing RPM packages from a repo into the database

Synopsis

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.