Skip to content

Commit

Permalink
Extract recursively from* and to* archives #659
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Druez <[email protected]>
  • Loading branch information
tdruez committed May 2, 2023
1 parent d4c4265 commit a95529b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scanpipe/pipelines/deploy_to_develop.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ def steps(cls):
cls.flag_mapped_resources_and_ignored_directories,
)

extract_recursively = True
purldb_match_extensions = [".jar", ".war", ".zip"]

def get_inputs(self):
Expand All @@ -73,8 +74,11 @@ def extract_inputs_to_codebase_directory(self):
self.add_error("\n".join(errors))

def extract_archives_in_place(self):
"""Extract from* and to* archives in place with extractcode."""
extract_errors = extract_archives(self.project.codebase_path)
"""Extract recursively from* and to* archives in place with extractcode."""
extract_errors = extract_archives(
self.project.codebase_path,
recurse=self.extract_recursively,
)

if extract_errors:
self.add_error("\n".join(extract_errors))
Expand Down

0 comments on commit a95529b

Please sign in to comment.