Module CPM.Repository.Update

This module implements operations to update and change the package repository, i.e., the index of all packages known to the package manager.

Summary of exported operations:

updateRepository :: Config -> IO ([LogEntry],Either LogEntry ())   
Updates the package index from the central Git repository.
addPackageToRepository :: Config -> String -> Bool -> Bool -> IO ([LogEntry],Either LogEntry ())   
Adds a package stored in the given directory to the repository index.

Exported operations:

updateRepository :: Config -> IO ([LogEntry],Either LogEntry ())   

Updates the package index from the central Git repository. Cleans also the global package cache in order to support downloading the newest versions.

addPackageToRepository :: Config -> String -> Bool -> Bool -> IO ([LogEntry],Either LogEntry ())   

Adds a package stored in the given directory to the repository index. If the argument force is true, overwrite an already existing package. If the argument cpdir is true, copy also the complete directory into the local package installation store.