[go: up one dir, main page]

Menu

[r19]: / trunk / repmod-api.txt  Maximize  Restore  History

Download this file

48 lines (29 with data), 1.0 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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.