Operations to initialize and manipulate the repository cache database.
Author: Michael Hanus
Version: June 2019
repositoryCacheDB
:: Config -> String
The database containing the repository cache. |
tryInstallRepositoryDB
:: Config -> Bool -> Bool -> IO ([LogEntry],Either LogEntry ())
Installs the repository database with the current repository index if the command sqlite3
is in the path.
|
addPackagesToRepositoryDB
:: Config -> Bool -> [Either Package [String]] -> IO ([LogEntry],Either LogEntry ())
Add a list of package descriptions to the database. |
The database containing the repository cache. |
Installs the repository database with the current repository index
if the command |
Add a list of package descriptions to the database. Here, a package description is either a (reduced) package specification or a list of string (a row from a CSV file) containing the required infos. |