xbps-install: remove -p --print-format arg for now (unimplemented).

This commit is contained in:
Juan RP 2012-11-21 05:57:53 +01:00
parent 27622cf3cb
commit 7669fcf34d

View File

@ -52,7 +52,6 @@ usage(bool fail)
" -f --force Force package installation\n" " -f --force Force package installation\n"
" -h --help Print help usage\n" " -h --help Print help usage\n"
" -n --dry-run Dry-run mode\n" " -n --dry-run Dry-run mode\n"
" -p --print-format <fmt> Print format for dry-run mode\n"
" -R --repository <uri> Default repository to be used if config not set\n" " -R --repository <uri> Default repository to be used if config not set\n"
" -r --rootdir <dir> Full path to rootdir\n" " -r --rootdir <dir> Full path to rootdir\n"
" -s --skip-sync Skip remote repository index sync\n" " -s --skip-sync Skip remote repository index sync\n"
@ -73,7 +72,7 @@ cleanup_sighandler(int signum)
int int
main(int argc, char **argv) main(int argc, char **argv)
{ {
const char *shortopts = "AC:c:dfhnp:R:r:suVvy"; const char *shortopts = "AC:c:dfhnR:r:suVvy";
const struct option longopts[] = { const struct option longopts[] = {
{ "automatic", no_argument, NULL, 'A' }, { "automatic", no_argument, NULL, 'A' },
{ "config", required_argument, NULL, 'C' }, { "config", required_argument, NULL, 'C' },
@ -82,7 +81,6 @@ main(int argc, char **argv)
{ "force", no_argument, NULL, 'f' }, { "force", no_argument, NULL, 'f' },
{ "help", no_argument, NULL, 'h' }, { "help", no_argument, NULL, 'h' },
{ "dry-run", no_argument, NULL, 'n' }, { "dry-run", no_argument, NULL, 'n' },
{ "print-format", required_argument, NULL, 'p' },
{ "repository", required_argument, NULL, 'R' }, { "repository", required_argument, NULL, 'R' },
{ "rootdir", required_argument, NULL, 'r' }, { "rootdir", required_argument, NULL, 'r' },
{ "skip-sync", no_argument, NULL, 's' }, { "skip-sync", no_argument, NULL, 's' },
@ -94,12 +92,12 @@ main(int argc, char **argv)
}; };
struct xferstat xfer; struct xferstat xfer;
struct sigaction sa; struct sigaction sa;
const char *rootdir, *cachedir, *conffile, *defrepo, *pformat; const char *rootdir, *cachedir, *conffile, *defrepo;
int i, c, flags, rv; int i, c, flags, rv;
bool skip_sync, yes, reinstall, drun, update; bool skip_sync, yes, reinstall, drun, update;
size_t maxcols; size_t maxcols;
rootdir = cachedir = conffile = defrepo = pformat = NULL; rootdir = cachedir = conffile = defrepo = NULL;
flags = rv = 0; flags = rv = 0;
skip_sync = yes = reinstall = drun = update = false; skip_sync = yes = reinstall = drun = update = false;
@ -127,9 +125,6 @@ main(int argc, char **argv)
case 'n': case 'n':
drun = true; drun = true;
break; break;
case 'p':
pformat = optarg;
break;
case 'R': case 'R':
defrepo = optarg; defrepo = optarg;
break; break;