diff --git a/bin/xbps-repo/main.c b/bin/xbps-repo/main.c index fdecfe0e..d5558f1a 100644 --- a/bin/xbps-repo/main.c +++ b/bin/xbps-repo/main.c @@ -52,6 +52,7 @@ usage(void) " show-deps\t\n" " show-files\t\n" " Options shared by all actions:\n" + " -c\t\t\n" " -r\t\t\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; diff --git a/bin/xbps-repo/xbps-repo.8.txt b/bin/xbps-repo/xbps-repo.8.txt index 64d208c7..0fb4c91f 100644 --- a/bin/xbps-repo/xbps-repo.8.txt +++ b/bin/xbps-repo/xbps-repo.8.txt @@ -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//pkg-index.plist*:: Remote repository package index file. + + + +*/var/cache/xbps*:: xbps _cache_ directory for downloaded binary packages. + + BUGS ----