Repository module API
The repository needs to have those functions:
rep_init
parameters: none
This is functions is supposed to initialize the repository, mounting
media, log in etc...
rep_fetch
parameters: URI
This function is supposed to download a file from the repository to
current location.
The filename specified can be either the repository index or an
archive.
rep_cache_fetch
parameters: URI
Fetch a file from repository to cache and return the pathname to
cached file. Some repositories that are local does not need to move
anything to cache (like file:// repositories) and can therefore just
return the pathname to the file.
*rep_fetch_stdout
parameters: filename
Fetch a file from repository and send the contents to stdout.
rep_cleanup
unmount media, log out.
* = Not implemented yet
The functions has to care for the following global variables (readonly):
VERBOSE
if not set or empty, try to be quiet.
PACKAGES
location for the file cache to packages.