[Git][reproducible-builds/diffoscope][master] 2 commits: Make it easier to navigate the main.py entry point.
Chris Lamb
gitlab at salsa.debian.org
Thu Jul 23 15:22:16 UTC 2020
Chris Lamb pushed to branch master at Reproducible Builds / diffoscope
Commits:
aee4f735 by Chris Lamb at 2020-07-23T16:19:20+01:00
Make it easier to navigate the main.py entry point.
- - - - -
aa4a109e by Chris Lamb at 2020-07-23T16:20:06+01:00
Drop some legacy argument styles; --exclude-directory-metadata and --no-exclude-directory-metadata have been replaced with --exclude-directory-metadata={yes,no}.
- - - - -
1 changed file:
- diffoscope/main.py
Changes:
=====================================
diffoscope/main.py
=====================================
@@ -728,22 +728,21 @@ def main(args=None):
)
sys.exit(2)
- # Rewrite/support some legacy argument styles
- for val, repl in (
- ("--exclude-directory-metadata", "--exclude-directory-metadata=yes"),
- ("--no-exclude-directory-metadata", "--exclude-directory-metadata=no"),
- ):
- args = [repl if x == val else x for x in args]
-
parsed_args = None
+
try:
with profile("main", "parse_args"):
parser, post_parse = create_parser()
parsed_args = parser.parse_args(args)
+
log_handler = ProgressManager().setup(parsed_args)
+
with setup_logging(parsed_args.debug, log_handler) as logger:
post_parse(parsed_args)
+
+ # Call main entry point
sys.exit(run_diffoscope(parsed_args))
+
except OSError as e:
if e.errno != errno.ENOSPC:
raise
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/-/compare/c66a7f6569379a765abcd1d11ca26a940654b65b...aa4a109e5a74f795468c7930b615b3ebfe1bc9d7
--
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/-/compare/c66a7f6569379a765abcd1d11ca26a940654b65b...aa4a109e5a74f795468c7930b615b3ebfe1bc9d7
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20200723/61b5e5b3/attachment.htm>
More information about the rb-commits
mailing list