Skip to content

Commit

Permalink
Fix analysis_runner.py to actually upload local packages. (#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverchang authored Feb 3, 2022
1 parent a0c2d8b commit 5c0f8e6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tools/analysis/analysis_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -125,6 +130,7 @@ def main():
else:
_request(
package, args.ecosystem, args.version,
local_file=local_file,
results_bucket=args.results)


Expand Down

0 comments on commit 5c0f8e6

Please sign in to comment.