xbps-repo: add -c flag to set cachedir, update manpage.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20091128025616-fe43609n1rosmt6u
This commit is contained in:
Juan RP 2009-11-28 03:56:16 +01:00
parent f3d2481c31
commit 3855ee582a
2 changed files with 22 additions and 1 deletions

View File

@ -52,6 +52,7 @@ usage(void)
" show-deps\t<pkgname>\n"
" show-files\t<pkgname>\n"
" Options shared by all actions:\n"
" -c\t\t<cachedir>\n"
" -r\t\t<rootdir>\n"
" -V\t\tPrints xbps release version\n"
"\n"
@ -74,8 +75,11 @@ main(int argc, char **argv)
char *root;
int c, rv = 0;
while ((c = getopt(argc, argv, "Vr:")) != -1) {
while ((c = getopt(argc, argv, "Vcr:")) != -1) {
switch (c) {
case 'c':
xbps_set_cachedir(optarg);
break;
case 'r':
/* To specify the root directory */
root = optarg;

View File

@ -23,6 +23,13 @@ and show information about a binary package in repository pool.
OPTIONS
-------
*-c* 'cachedir'::
Sets the 'cache' directory to store downloaded binary packages
from remote repositories.
By default it's set to '/var/cache/xbps' and it's always relative
to the 'root' directory. So if you use a 'rootdir' of '/blah',
it will become '/blah/cachedir'.
*-r* 'rootdir'::
Sets the 'root' directory. By default the root directory is
set to '/'. Please note that the database directory is always
@ -84,6 +91,16 @@ Please note that all targets are *case insensitive*.
Syncs the package index file for all registered remote repositories.
The new file will be fetched if local and remote size/mtime do not match.
FILES
-----
*/var/db/xbps/repositories.plist*:: Registered repository list.
+
*/var/db/xbps/<remoterepodir>/pkg-index.plist*:: Remote repository package index file.
+
*/var/cache/xbps*:: xbps _cache_ directory for downloaded binary packages.
+
BUGS
----