public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Fabian Groffen" <grobian@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/portage-utils:master commit in: man/, /
Date: Thu, 28 Feb 2019 19:28:10 +0000 (UTC)	[thread overview]
Message-ID: <1551382032.951a8711a59b1a7d49125f5f5214ff1ae9e50074.grobian@gentoo> (raw)

commit:     951a8711a59b1a7d49125f5f5214ff1ae9e50074
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 28 19:27:12 2019 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Thu Feb 28 19:27:12 2019 +0000
URL:        https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=951a8711

qfile: drop non-functional --exact option

Bug: https://bugs.gentoo.org/678632
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 man/qfile.1 |  3 ---
 qfile.c     | 11 ++---------
 2 files changed, 2 insertions(+), 12 deletions(-)

diff --git a/man/qfile.1 b/man/qfile.1
index c7f7054..6bf07c0 100644
--- a/man/qfile.1
+++ b/man/qfile.1
@@ -27,9 +27,6 @@ List orphan files.
 \fB\-x\fR \fI<arg>\fR, \fB\-\-exclude\fR \fI<arg>\fR
 Don't look in package <arg> (used with --orphans).
 .TP
-\fB\-e\fR, \fB\-\-exact\fR
-Exact match (used with --exclude).
-.TP
 \fB\-\-root\fR \fI<arg>\fR
 Set the ROOT env var.
 .TP

diff --git a/qfile.c b/qfile.c
index 285277b..6e1cb0a 100644
--- a/qfile.c
+++ b/qfile.c
@@ -8,14 +8,13 @@
 
 #ifdef APPLET_qfile
 
-#define QFILE_FLAGS "beoRx:S" COMMON_FLAGS
+#define QFILE_FLAGS "boRx:S" COMMON_FLAGS
 static struct option const qfile_long_opts[] = {
 	{"slots",       no_argument, NULL, 'S'},
 	{"root-prefix", no_argument, NULL, 'R'},
 	{"basename",    no_argument, NULL, 'b'},
 	{"orphans",     no_argument, NULL, 'o'},
 	{"exclude",      a_argument, NULL, 'x'},
-	{"exact",       no_argument, NULL, 'e'},
 	COMMON_LONG_OPTS
 };
 static const char * const qfile_opts_help[] = {
@@ -24,7 +23,6 @@ static const char * const qfile_opts_help[] = {
 	"Match any component of the path",
 	"List orphan files",
 	"Don't look in package <arg> (used with --orphans)",
-	"Exact match (used with --exclude)",
 	COMMON_OPTS_HELP
 };
 #define qfile_usage(ret) usage(ret, QFILE_FLAGS, qfile_long_opts, qfile_opts_help, NULL, lookup_applet_idx("qfile"))
@@ -56,7 +54,6 @@ struct qfile_opt_state {
 	depend_atom *exclude_atom;
 	bool slotted;
 	bool basename;
-	bool exact;
 	bool orphans;
 	bool assume_root_prefix;
 };
@@ -224,7 +221,7 @@ static int qfile_cb(q_vdb_pkg_ctx *pkg_ctx, void *priv)
 				} else
 					slot[0] = '\0';
 				printf("%s%s/%s%s%s%s", BOLD, atom->CATEGORY, BLUE,
-					(state->exact ? pkg_ctx->name : atom->PN),
+					(verbose ? pkg_ctx->name : atom->PN),
 					slot, NORM);
 				if (quiet)
 					puts("");
@@ -402,7 +399,6 @@ int qfile_main(int argc, char **argv)
 		.buflen = _Q_PATH_MAX,
 		.slotted = false,
 		.basename = false,
-		.exact = false,
 		.orphans = false,
 		.assume_root_prefix = false,
 	};
@@ -414,7 +410,6 @@ int qfile_main(int argc, char **argv)
 			COMMON_GETOPTS_CASES(qfile)
 			case 'S': state.slotted = true; break;
 			case 'b': state.basename = true; break;
-			case 'e': state.exact = true; break;
 			case 'o': state.orphans = true; break;
 			case 'R': state.assume_root_prefix = true; break;
 			case 'x':
@@ -429,8 +424,6 @@ int qfile_main(int argc, char **argv)
 				break;
 		}
 	}
-	if (!state.exact && verbose)
-		state.exact = true;
 	if (argc == optind)
 		qfile_usage(EXIT_FAILURE);
 


             reply	other threads:[~2019-02-28 19:28 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-28 19:28 Fabian Groffen [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-12-15  9:36 [gentoo-commits] proj/portage-utils:master commit in: man/, / Fabian Groffen
2022-05-26 14:36 Fabian Groffen
2021-02-17 20:23 Fabian Groffen
2020-05-16 13:06 Fabian Groffen
2020-01-19  9:49 Fabian Groffen
2019-07-14 18:51 Fabian Groffen
2019-07-14 13:09 Fabian Groffen
2019-06-21 18:24 Fabian Groffen
2019-05-03  8:50 Fabian Groffen
2019-05-02 18:02 Fabian Groffen
2019-04-28  8:52 Fabian Groffen
2016-03-28  4:53 Mike Frysinger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1551382032.951a8711a59b1a7d49125f5f5214ff1ae9e50074.grobian@gentoo \
    --to=grobian@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox