From 7669fcf34d6dc1114cd3a54c5190e90b90e11e06 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 21 Nov 2012 05:57:53 +0100 Subject: [PATCH] xbps-install: remove -p --print-format arg for now (unimplemented). --- bin/xbps-install/main.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/bin/xbps-install/main.c b/bin/xbps-install/main.c index d9cc9a00..5be7c694 100644 --- a/bin/xbps-install/main.c +++ b/bin/xbps-install/main.c @@ -52,7 +52,6 @@ usage(bool fail) " -f --force Force package installation\n" " -h --help Print help usage\n" " -n --dry-run Dry-run mode\n" - " -p --print-format Print format for dry-run mode\n" " -R --repository Default repository to be used if config not set\n" " -r --rootdir Full path to rootdir\n" " -s --skip-sync Skip remote repository index sync\n" @@ -73,7 +72,7 @@ cleanup_sighandler(int signum) int 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[] = { { "automatic", no_argument, NULL, 'A' }, { "config", required_argument, NULL, 'C' }, @@ -82,7 +81,6 @@ main(int argc, char **argv) { "force", no_argument, NULL, 'f' }, { "help", no_argument, NULL, 'h' }, { "dry-run", no_argument, NULL, 'n' }, - { "print-format", required_argument, NULL, 'p' }, { "repository", required_argument, NULL, 'R' }, { "rootdir", required_argument, NULL, 'r' }, { "skip-sync", no_argument, NULL, 's' }, @@ -94,12 +92,12 @@ main(int argc, char **argv) }; struct xferstat xfer; struct sigaction sa; - const char *rootdir, *cachedir, *conffile, *defrepo, *pformat; + const char *rootdir, *cachedir, *conffile, *defrepo; int i, c, flags, rv; bool skip_sync, yes, reinstall, drun, update; size_t maxcols; - rootdir = cachedir = conffile = defrepo = pformat = NULL; + rootdir = cachedir = conffile = defrepo = NULL; flags = rv = 0; skip_sync = yes = reinstall = drun = update = false; @@ -127,9 +125,6 @@ main(int argc, char **argv) case 'n': drun = true; break; - case 'p': - pformat = optarg; - break; case 'R': defrepo = optarg; break;