Skip to content

Commit

Permalink
Upgrade the extractcode version and the extract_file function call #132
Browse files Browse the repository at this point in the history
Signed-off-by: tdruez <[email protected]>
  • Loading branch information
tdruez committed Jun 2, 2021
1 parent 07e2f3c commit d47d181
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion etc/requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ container_inspector==21.5.25

# ScanCode-toolkit
scancode-toolkit[packages]==21.3.31
extractcode[full]==21.6.1
extractcode[full]==21.6.2
commoncode==21.5.25

# FetchCode
Expand Down
3 changes: 2 additions & 1 deletion scanpipe/pipes/scancode.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
import packagedcode
from commoncode import fileutils
from commoncode.resource import VirtualCodebase
from extractcode import all_kinds
from extractcode.extract import extract_file
from packageurl import PackageURL
from scancode import ScancodeError
Expand Down Expand Up @@ -63,7 +64,7 @@ def extract(location, target):
"""
errors = []

for event in extract_file(location, target, all_formats=True):
for event in extract_file(location, target, kinds=all_kinds):
if event.done:
errors.extend(event.errors)

Expand Down

0 comments on commit d47d181

Please sign in to comment.