From 5c0f8e6ce0f70eb13c84fe8728f0cfdcfff11903 Mon Sep 17 00:00:00 2001 From: Oliver Chang Date: Thu, 3 Feb 2022 13:30:32 +1100 Subject: [PATCH] Fix analysis_runner.py to actually upload local packages. (#221) --- tools/analysis/analysis_runner.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tools/analysis/analysis_runner.py b/tools/analysis/analysis_runner.py index 9c64e0a6..0ad3c6bb 100644 --- a/tools/analysis/analysis_runner.py +++ b/tools/analysis/analysis_runner.py @@ -103,8 +103,13 @@ def main(): args = parser.parse_args() - if args.file and (not args.name or not args.version): - raise ValueError('Need to specify package name and version for local file.') + local_file = None + if args.file: + if not args.name or not args.version: + raise ValueError( + 'Need to specify package name and version for local file.') + + local_file = args.file package_names = [] if args.list: @@ -125,6 +130,7 @@ def main(): else: _request( package, args.ecosystem, args.version, + local_file=local_file, results_bucket=args.results)