From d53f3243cee54a85a25e7ba1a8f6020f85a871eb Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 12 Jun 2019 19:53:41 +0200 Subject: [PATCH] xbps-checkvers: added ability to ignore conf repos via -i. -i,--ignore-conf-repos has been added. The previous -i,--installed flag has been renamed to -I. This breaks compat but we'll need to change buildbot anyway. Signed-off-by: Juan RP --- bin/xbps-checkvers/main.c | 9 +++++++-- bin/xbps-checkvers/xbps-checkvers.1 | 7 ++++++- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/bin/xbps-checkvers/main.c b/bin/xbps-checkvers/main.c index 0a037917..cc252ae2 100644 --- a/bin/xbps-checkvers/main.c +++ b/bin/xbps-checkvers/main.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014-2015 Juan Romero Pardines + * Copyright (c) 2014-2019 Juan Romero Pardines * Copyright (c) 2012-2014 Dave Elusive * All rights reserved * @@ -197,8 +197,9 @@ show_usage(const char *prog) " -D,--distdir=DIRECTORY Set (or override) the path to void-packages\n" " (defaults to ~/void-packages).\n" " -d,--debug Enable debug output to stderr.\n" -" -i,--installed Check for outdated packages in rootdir, rather\n" +" -I,--installed Check for outdated packages in rootdir, rather\n" " than in the XBPS repositories.\n" +" -i,--ignore-conf-repos Ignore repositories defined in xbps.d.\n" " -R,--repository=URL Append repository to the head of repository list.\n" " -r,--rootdir=DIRECTORY Set root directory (defaults to /).\n" " -s,--show-missing List any binary packages which are not built.\n" @@ -695,6 +696,7 @@ main(int argc, char **argv) { "distdir", required_argument, NULL, 'D' }, { "debug", no_argument, NULL, 'd' }, { "installed", no_argument, NULL, 'i' }, + { "ignore-conf-repos", no_argument, NULL, 'I' }, { "repository", required_argument, NULL, 'R' }, { "rootdir", required_argument, NULL, 'r' }, { "show-missing", no_argument, NULL, 's' }, @@ -718,6 +720,9 @@ main(int argc, char **argv) rcv.xhp.flags |= XBPS_FLAG_DEBUG; break; case 'i': + rcv.xhp.flags |= XBPS_FLAG_IGNORE_CONF_REPOS; + break; + case 'I': rcv.installed = true; break; case 'R': diff --git a/bin/xbps-checkvers/xbps-checkvers.1 b/bin/xbps-checkvers/xbps-checkvers.1 index 42863535..ee8a4d1d 100644 --- a/bin/xbps-checkvers/xbps-checkvers.1 +++ b/bin/xbps-checkvers/xbps-checkvers.1 @@ -35,7 +35,12 @@ Specifies a full path to the void-packages repository. By default set to Enables extra debugging shown to stderr. .It Fl h, Fl -help Show the help message. -.It Fl i, Fl -installed +.It Fl i, Fl -ignore-conf-repos +Ignore repositories defined in configuration files. +Only repositories specified in the command line via +.Ar --repository +will be used. +.It Fl I, Fl -installed Check for outdated installed packages rather than in repositories. .It Fl R, Fl -repository=uri Repository to be added to the top of the list. This option can be specified multiple times.