xbps-repo: add -c flag to set cachedir, update manpage.
--HG-- extra : convert_revision : xtraeme%40gmail.com-20091128025616-fe43609n1rosmt6u
This commit is contained in:
parent
f3d2481c31
commit
3855ee582a
@ -52,6 +52,7 @@ usage(void)
|
|||||||
" show-deps\t<pkgname>\n"
|
" show-deps\t<pkgname>\n"
|
||||||
" show-files\t<pkgname>\n"
|
" show-files\t<pkgname>\n"
|
||||||
" Options shared by all actions:\n"
|
" Options shared by all actions:\n"
|
||||||
|
" -c\t\t<cachedir>\n"
|
||||||
" -r\t\t<rootdir>\n"
|
" -r\t\t<rootdir>\n"
|
||||||
" -V\t\tPrints xbps release version\n"
|
" -V\t\tPrints xbps release version\n"
|
||||||
"\n"
|
"\n"
|
||||||
@ -74,8 +75,11 @@ main(int argc, char **argv)
|
|||||||
char *root;
|
char *root;
|
||||||
int c, rv = 0;
|
int c, rv = 0;
|
||||||
|
|
||||||
while ((c = getopt(argc, argv, "Vr:")) != -1) {
|
while ((c = getopt(argc, argv, "Vcr:")) != -1) {
|
||||||
switch (c) {
|
switch (c) {
|
||||||
|
case 'c':
|
||||||
|
xbps_set_cachedir(optarg);
|
||||||
|
break;
|
||||||
case 'r':
|
case 'r':
|
||||||
/* To specify the root directory */
|
/* To specify the root directory */
|
||||||
root = optarg;
|
root = optarg;
|
||||||
|
@ -23,6 +23,13 @@ and show information about a binary package in repository pool.
|
|||||||
|
|
||||||
OPTIONS
|
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'::
|
*-r* 'rootdir'::
|
||||||
Sets the 'root' directory. By default the root directory is
|
Sets the 'root' directory. By default the root directory is
|
||||||
set to '/'. Please note that the database directory is always
|
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.
|
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.
|
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
|
BUGS
|
||||||
----
|
----
|
||||||
|
Loading…
Reference in New Issue
Block a user