Fix ignore_path_errors call in main

The `parse_ignore_path_errors' function expects a list of paths, not an
individual path.

Change-Id: Icc8a4721b38776d8268c731ea5b624a3e4a3b2a9
This commit is contained in:
Julien Danjou 2017-03-15 14:05:39 +01:00
parent 08be40a220
commit f612f0e508
1 changed files with 6 additions and 7 deletions

View File

@ -342,13 +342,12 @@ def main():
args['ignore_path'].extend(cfg.pop('ignore_path', []))
cfg.setdefault('ignore_path_errors', {})
for tmp_ignore_path_error in args.pop('ignore_path_errors', []):
tmp_ignores = parse_ignore_path_errors(tmp_ignore_path_error)
for path, ignores in six.iteritems(tmp_ignores):
if path in cfg['ignore_path_errors']:
cfg['ignore_path_errors'][path].update(ignores)
else:
cfg['ignore_path_errors'][path] = set(ignores)
tmp_ignores = parse_ignore_path_errors(args.pop('ignore_path_errors', []))
for path, ignores in six.iteritems(tmp_ignores):
if path in cfg['ignore_path_errors']:
cfg['ignore_path_errors'][path].update(ignores)
else:
cfg['ignore_path_errors'][path] = set(ignores)
args.update(cfg)
setup_logging(args.get('verbose'))