Replaced config/system {repo,preserve,virtualpkg}.d with a single directory.
See the NEWS file for more information.
This commit is contained in:
@@ -40,7 +40,7 @@ usage(bool fail)
|
||||
"Usage: xbps-reconfigure [OPTIONS] [PKGNAME...]\n\n"
|
||||
"OPTIONS\n"
|
||||
" -a --all Process all packages\n"
|
||||
" -C --config <file> Full path to configuration file\n"
|
||||
" -C --config <dir> Path to confdir (xbps.d)\n"
|
||||
" -d --debug Debug mode shown to stderr\n"
|
||||
" -f --force Force reconfiguration\n"
|
||||
" -h --help Print usage help\n"
|
||||
@@ -104,7 +104,7 @@ main(int argc, char **argv)
|
||||
{ NULL, 0, NULL, 0 }
|
||||
};
|
||||
struct xbps_handle xh;
|
||||
const char *conffile = NULL, *rootdir = NULL;
|
||||
const char *confdir = NULL, *rootdir = NULL;
|
||||
int c, i, rv, flags = 0;
|
||||
bool all = false;
|
||||
|
||||
@@ -114,7 +114,7 @@ main(int argc, char **argv)
|
||||
all = true;
|
||||
break;
|
||||
case 'C':
|
||||
conffile = optarg;
|
||||
confdir = optarg;
|
||||
break;
|
||||
case 'd':
|
||||
flags |= XBPS_FLAG_DEBUG;
|
||||
@@ -146,9 +146,9 @@ main(int argc, char **argv)
|
||||
memset(&xh, 0, sizeof(xh));
|
||||
xh.state_cb = state_cb;
|
||||
if (rootdir)
|
||||
strncpy(xh.rootdir, rootdir, sizeof(xh.rootdir));
|
||||
if (conffile)
|
||||
strncpy(xh.conffile, conffile, sizeof(xh.conffile));
|
||||
xbps_strlcpy(xh.rootdir, rootdir, sizeof(xh.rootdir));
|
||||
if (confdir)
|
||||
xbps_strlcpy(xh.confdir, confdir, sizeof(xh.confdir));
|
||||
|
||||
xh.flags = flags;
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
.Dd September 30, 2014
|
||||
.Dd November 5, 2014
|
||||
.Dt XBPS-RECONFIGURE 8
|
||||
.Sh NAME
|
||||
.Nm xbps-reconfigure
|
||||
@@ -35,8 +35,10 @@ option is specified.
|
||||
.Bl -tag -width -x
|
||||
.It Fl a, Fl -all
|
||||
Configures all packages.
|
||||
.It Fl C, Fl -config Ar file
|
||||
Specifies a full path to the XBPS configuration file.
|
||||
.It Fl C, Fl -config Ar dir
|
||||
Specifies a path to the XBPS configuration directory.
|
||||
If the first character is not '\/' then it's a relative path of
|
||||
.Ar rootdir .
|
||||
.It Fl d, Fl -debug
|
||||
Enables extra debugging shown to stderr.
|
||||
.It Fl f, Fl -force
|
||||
@@ -44,7 +46,7 @@ Forcefully reconfigure package even if it was configured previously.
|
||||
.It Fl h, Fl -help
|
||||
Show the help usage.
|
||||
.It Fl r, Fl -rootdir Ar dir
|
||||
Specifies a full path for the target root directory.
|
||||
Specifies a path for the target root directory.
|
||||
.It Fl v, Fl -verbose
|
||||
Enables verbose messages.
|
||||
.It Fl V, Fl -version
|
||||
@@ -52,8 +54,8 @@ Shows the XBPS version.
|
||||
.El
|
||||
.Sh FILES
|
||||
.Bl -tag -width /var/db/xbps/.<pkgname>-files.plist
|
||||
.It Ar /etc/xbps/xbps.conf
|
||||
Default configuration file.
|
||||
.It Ar /etc/xbps.d
|
||||
Default configuration directory.
|
||||
.It Ar /var/db/xbps/.<pkgname>.plist
|
||||
Package files metadata.
|
||||
.It Ar /var/db/xbps/pkgdb-0.38.plist
|
||||
|
Reference in New Issue
Block a user