public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Paul Varner" <fuzzyray@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gentoolkit:master commit in: pym/gentoolkit/equery/
Date: Thu, 30 Jun 2016 23:36:23 +0000 (UTC)	[thread overview]
Message-ID: <1467321550.fa12fe254733ca3e6edf5659522da7e048f53adc.fuzzyray@gentoo> (raw)

commit:     fa12fe254733ca3e6edf5659522da7e048f53adc
Author:     Paul Varner <fuzzyray <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 30 21:06:00 2016 +0000
Commit:     Paul Varner <fuzzyray <AT> gentoo <DOT> org>
CommitDate: Thu Jun 30 21:19:10 2016 +0000
URL:        https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=fa12fe25

equery: Change option --ignore-linguas to --ignore-l10n

Change the option to filter out the L10N USE expanded flag. This is to
support the transition from using LINGUAS for localization in ebuilds.

 pym/gentoolkit/equery/uses.py | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/pym/gentoolkit/equery/uses.py b/pym/gentoolkit/equery/uses.py
index adf8b6c..79f1118 100644
--- a/pym/gentoolkit/equery/uses.py
+++ b/pym/gentoolkit/equery/uses.py
@@ -35,7 +35,7 @@ from gentoolkit.flag import get_flags, reduce_flags
 # Globals
 # =======
 
-QUERY_OPTS = {"all_versions" : False, "ignore_linguas" : False}
+QUERY_OPTS = {"all_versions" : False, "ignore_l10n" : False}
 
 # =========
 # Functions
@@ -57,7 +57,7 @@ def print_help(with_description=True):
 	print(format_options((
 		(" -h, --help", "display this help message"),
 		(" -a, --all", "include all package versions"),
-		(" -i, --ignore-linguas", "don't show linguas USE flags")
+		(" -i, --ignore-l10n", "don't show l10n USE flags")
 	)))
 
 
@@ -187,9 +187,10 @@ def get_output_descriptions(pkg, global_usedesc):
 	usevar = reduce_flags(iuse)
 	usevar.sort()
 
-	if QUERY_OPTS['ignore_linguas']:
+	if QUERY_OPTS['ignore_l10n']:
 		for a in usevar[:]:
-			if a.startswith("linguas_"):
+			#TODO: Remove linguas after transition to l10n is complete
+			if a.startswith("l10n_") or a.startswith("linguas_"):
 				usevar.remove(a)
 
 
@@ -244,8 +245,8 @@ def parse_module_options(module_opts):
 			sys.exit(0)
 		elif opt in ('-a', '--all'):
 			QUERY_OPTS['all_versions'] = True
-		elif opt in ('-i', '--ignore-linguas'):
-			QUERY_OPTS['ignore_linguas'] = True
+		elif opt in ('-i', '--ignore-l10n'):
+			QUERY_OPTS['ignore_l10n'] = True
 
 
 def print_legend():
@@ -261,7 +262,7 @@ def main(input_args):
 	"""Parse input and run the program"""
 
 	short_opts = "hai"
-	long_opts = ('help', 'all', 'ignore-linguas')
+	long_opts = ('help', 'all', 'ignore-l10n')
 
 	try:
 		module_opts, queries = gnu_getopt(input_args, short_opts, long_opts)


             reply	other threads:[~2016-06-30 23:36 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-30 23:36 Paul Varner [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-03-07 18:49 [gentoo-commits] proj/gentoolkit:master commit in: pym/gentoolkit/equery/ Sam James
2024-03-07 18:49 Sam James
2023-09-19 19:13 Sam James
2023-08-05  5:38 Sam James
2023-07-18 22:30 Sam James
2023-07-18 22:26 Sam James
2022-07-28 15:29 Brian Dolbec
2022-07-28 15:29 Brian Dolbec
2022-07-10 18:41 Brian Dolbec
2022-07-10 18:01 Brian Dolbec
2022-07-10 16:23 Brian Dolbec
2022-07-10 16:23 Brian Dolbec
2022-07-10  1:24 Brian Dolbec
2022-07-09  5:17 Sam James
2018-05-01 12:32 Mike Pagano
2017-09-05 15:32 Mike Gilbert
2016-06-30 20:44 Paul Varner
2016-06-06 19:29 Brian Dolbec
2015-11-09 20:52 Brian Dolbec
2015-11-09  2:42 Brian Dolbec
2015-11-08 17:37 Brian Dolbec

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=1467321550.fa12fe254733ca3e6edf5659522da7e048f53adc.fuzzyray@gentoo \
    --to=fuzzyray@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