This is the mail archive of the mailing list for the glibc project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch master updated. glibc-2.22-632-gd108b75

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  d108b75561d0d3a4187be9fa47285260aaad37ea (commit)
      from  b674b821091141c5eed7d423612d3b10703e9c62 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------;a=commitdiff;h=d108b75561d0d3a4187be9fa47285260aaad37ea

commit d108b75561d0d3a4187be9fa47285260aaad37ea
Author: Mike Frysinger <>
Date:   Tue Nov 10 00:41:33 2015 -0500

    list-fixed-bugs: use argparse for the commandline
    This makes the interface more friendly to users.

diff --git a/ChangeLog b/ChangeLog
index 5135c01..183c55b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2015-12-29  Mike Frysinger  <>
+	* scripts/ Import argparse.  Call main instead.
+	(get_parser): New function.
+	(main): New function.
 2015-12-29  Rob Wu  <>
 	[BZ #19369]
diff --git a/scripts/ b/scripts/
index 37e9a43..0a61adc 100755
--- a/scripts/
+++ b/scripts/
@@ -23,11 +23,21 @@ bugs marked as FIXED with that milestone, to be added to the NEWS file
 just before release.  The output is in UTF-8.
+import argparse
 import json
 import sys
 import textwrap
 import urllib.request
+def get_parser():
+    """Return an argument parser for this module."""
+    parser = argparse.ArgumentParser(description=__doc__)
+    parser.add_argument('version',
+                        help='Release version to look up')
+    return parser
 def list_fixed_bugs(version):
     """List the bugs fixed in a given version."""
     url = (''
@@ -42,5 +52,13 @@ def list_fixed_bugs(version):
                              subsequent_indent='    ') + '\n'
+def main(argv):
+    """The main entry point."""
+    parser = get_parser()
+    opts = parser.parse_args(argv)
+    list_fixed_bugs(opts.version)
 if __name__ == '__main__':
-    list_fixed_bugs(sys.argv[1])
+    main(sys.argv[1:])


Summary of changes:
 ChangeLog                  |    6 ++++++
 scripts/ |   20 +++++++++++++++++++-
 2 files changed, 25 insertions(+), 1 deletions(-)

GNU C Library master sources

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]