Skip to content

Commit

Permalink
Merge pull request raimon49#38 from erinpentecost/ignore_bypasses_parse
Browse files Browse the repository at this point in the history
--ignore-packages short-circuit
  • Loading branch information
raimon49 authored Jul 24, 2019
2 parents 14b0c29 + 53394f7 commit d74b977
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions piplicenses.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,15 +181,15 @@ def get_pkg_info(pkg):
pkgs = get_installed_distributions()
ignore_pkgs_as_lower = [pkg.lower() for pkg in args.ignore_packages]
for pkg in pkgs:
pkg_info = get_pkg_info(pkg)
pkg_name = pkg_info['name']
pkg_name = pkg.project_name

if pkg_name.lower() in ignore_pkgs_as_lower:
continue

if not args.with_system and pkg_name in SYSTEM_PACKAGES:
continue

pkg_info = get_pkg_info(pkg)
yield pkg_info


Expand Down

0 comments on commit d74b977

Please sign in to comment.