public inbox for gentoo-portage-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-portage-dev] [PATCH] bin/glsa-check: align help menu with the man page updates
@ 2019-08-25 22:20 Aaron Bauman
  2019-08-25 23:01 ` [gentoo-portage-dev] " Aaron Bauman
  2019-08-26 18:57 ` [gentoo-portage-dev] " Zac Medico
  0 siblings, 2 replies; 4+ messages in thread
From: Aaron Bauman @ 2019-08-25 22:20 UTC (permalink / raw
  To: gentoo-portage-dev, security; +Cc: Aaron Bauman

* This simply aligns the help menu text with the man page
* Update copyright
* Bump version to 1.0.1

Signed-off-by: Aaron Bauman <bman@gentoo.org>
---
 bin/glsa-check | 27 +++++++++++++--------------
 1 file changed, 13 insertions(+), 14 deletions(-)

diff --git a/bin/glsa-check b/bin/glsa-check
index b5b76aae2..83ea6b7c3 100755
--- a/bin/glsa-check
+++ b/bin/glsa-check
@@ -1,5 +1,5 @@
 #!/usr/bin/python -b
-# Copyright 2008-2014 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 from __future__ import print_function
@@ -21,51 +21,50 @@ from portage.output import green, red, nocolor, white
 
 __program__ = "glsa-check"
 __author__ = "Marius Mauch <genone@gentoo.org>"
-__version__ = "1.0"
+__version__ = "1.0.1"
 
 # option parsing
 epilog = "glsa-list can contain an arbitrary number of GLSA ids," \
 		" filenames containing GLSAs or the special identifiers" \
 		" 'all', 'new' and 'affected'"
-parser = argparse.ArgumentParser(usage=__program__ + " <option> [glsa-list]",
+parser = argparse.ArgumentParser(usage=__program__ + " <option> [glsa-id | all | new | affected]",
 	epilog=epilog)
 
 modes = parser.add_argument_group("Modes")
 modes.add_argument("-l", "--list", action="store_const",
 		const="list", dest="mode",
-		help="List all unapplied GLSA")
+		help="List a summary for the given GLSA(s) or set and whether they affect the system")
 modes.add_argument("-d", "--dump", action="store_const",
 		const="dump", dest="mode",
-		help="Show all information about the given GLSA")
+		help="Show all information about the GLSA(s) or set")
 modes.add_argument("--print", action="store_const",
 		const="dump", dest="mode",
 		help="Alias for --dump")
 modes.add_argument("-t", "--test", action="store_const",
 		const="test", dest="mode",
-		help="Test if this system is affected by the given GLSA")
+		help="Test if this system is affected by the GLSA(s) or set and output the GLSA ID(s)")
 modes.add_argument("-p", "--pretend", action="store_const",
 		const="pretend", dest="mode",
-		help="Show the necessary commands to apply this GLSA")
+		help="Show the necessary steps to remediate the system")
 modes.add_argument("-f", "--fix", action="store_const",
 		const="fix", dest="mode",
-		help="Try to auto-apply this GLSA (experimental)")
+		help="(experimental) Attempt to remediate the system based on the instructions given in the GLSA(s) or set. This will only upgrade (when an upgrade path exists) or remove packages")
 modes.add_argument("-i", "--inject", action="store_const",
 		const="inject", dest="mode",
-		help="inject the given GLSA into the glsa_injected file")
+		help="Inject the given GLSA(s) into the glsa_injected file")
 modes.add_argument("-m", "--mail", action="store_const",
 		const="mail", dest="mode",
 		help="Send a mail with the given GLSAs to the administrator")
-
 parser.add_argument("-V", "--version", action="store_true",
-		help="Some information about this tool")
+		help="Show information about glsa-check")
 parser.add_argument("-v", "--verbose", action="store_true", dest="verbose",
-		help="Print more information")
+		help="Print more messages")
 parser.add_argument("-n", "--nocolor", action="store_true",
-		help="Disable colors")
+		help="Removes color from output")
 parser.add_argument("-e", "--emergelike", action="store_false", dest="least_change",
 		help="Do not use a least-change algorithm")
 parser.add_argument("-c", "--cve", action="store_true", dest="list_cve",
-		help="Show CAN ids in listing mode")
+		help="Show CVE IDs in listing mode")
 
 options, params = parser.parse_known_args()
 
-- 
2.23.0



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [gentoo-portage-dev] Re: [PATCH] bin/glsa-check: align help menu with the man page updates
  2019-08-25 22:20 [gentoo-portage-dev] [PATCH] bin/glsa-check: align help menu with the man page updates Aaron Bauman
@ 2019-08-25 23:01 ` Aaron Bauman
  2019-08-25 23:14   ` Aaron Bauman
  2019-08-26 18:57 ` [gentoo-portage-dev] " Zac Medico
  1 sibling, 1 reply; 4+ messages in thread
From: Aaron Bauman @ 2019-08-25 23:01 UTC (permalink / raw
  To: gentoo-portage-dev, security

[-- Attachment #1: Type: text/plain, Size: 252 bytes --]

On Sun, Aug 25, 2019 at 06:20:15PM -0400, Aaron Bauman wrote:

Please ignore this patch.

I think it would be better to just have `-h` and `--help` spit out the SYNOPSIS
like format. Reduces amount of code and duplication.

-- 
Cheers,
Aaron

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-portage-dev] Re: [PATCH] bin/glsa-check: align help menu with the man page updates
  2019-08-25 23:01 ` [gentoo-portage-dev] " Aaron Bauman
@ 2019-08-25 23:14   ` Aaron Bauman
  0 siblings, 0 replies; 4+ messages in thread
From: Aaron Bauman @ 2019-08-25 23:14 UTC (permalink / raw
  To: gentoo-portage-dev, security

[-- Attachment #1: Type: text/plain, Size: 490 bytes --]

On Sun, Aug 25, 2019 at 07:01:17PM -0400, Aaron Bauman wrote:
> On Sun, Aug 25, 2019 at 06:20:15PM -0400, Aaron Bauman wrote:
> 
> Please ignore this patch.
> 
> I think it would be better to just have `-h` and `--help` spit out the SYNOPSIS
> like format. Reduces amount of code and duplication.
> 
> -- 
> Cheers,
> Aaron

Sorry for the back and forth, please apply the patch.

The parser construct will take much longer to fix then a simple update.

-- 
Cheers,
Aaron

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-portage-dev] [PATCH] bin/glsa-check: align help menu with the man page updates
  2019-08-25 22:20 [gentoo-portage-dev] [PATCH] bin/glsa-check: align help menu with the man page updates Aaron Bauman
  2019-08-25 23:01 ` [gentoo-portage-dev] " Aaron Bauman
@ 2019-08-26 18:57 ` Zac Medico
  1 sibling, 0 replies; 4+ messages in thread
From: Zac Medico @ 2019-08-26 18:57 UTC (permalink / raw
  To: gentoo-portage-dev, Aaron Bauman, security


[-- Attachment #1.1: Type: text/plain, Size: 455 bytes --]

On 8/25/19 3:20 PM, Aaron Bauman wrote:
> * This simply aligns the help menu text with the man page
> * Update copyright
> * Bump version to 1.0.1
> 
> Signed-off-by: Aaron Bauman <bman@gentoo.org>
> ---
>  bin/glsa-check | 27 +++++++++++++--------------
>  1 file changed, 13 insertions(+), 14 deletions(-)

Thanks, merged:

https://gitweb.gentoo.org/proj/portage.git/commit/?id=ccba5a6ff0c4a2d6896827da9fa779919e86f744
-- 
Thanks,
Zac


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 981 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-08-26 18:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-08-25 22:20 [gentoo-portage-dev] [PATCH] bin/glsa-check: align help menu with the man page updates Aaron Bauman
2019-08-25 23:01 ` [gentoo-portage-dev] " Aaron Bauman
2019-08-25 23:14   ` Aaron Bauman
2019-08-26 18:57 ` [gentoo-portage-dev] " Zac Medico

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox