| | |
| | | #!/usr/bin/python3.5 |
| | | #!/usr/bin/python3.9 |
| | | |
| | | # |
| | | # This file and its contents are supplied under the terms of the |
| | |
| | | import subprocess |
| | | import multiprocessing |
| | | |
| | | from bass.component import BassComponent |
| | | from bass.component import Component |
| | | |
| | | try: |
| | | from scandir import walk |
| | |
| | | |
| | | def generate_component_data(component_path, subdir='components'): |
| | | result = [] |
| | | component = BassComponent(path=component_path) |
| | | component_name = component.component_name |
| | | component = Component(path=component_path) |
| | | component_name = component.name |
| | | if not component_name: |
| | | raise ValueError('Component name is empty for path ' + component_path + '.') |
| | | component_fmris = component.supplied_packages |
| | | if not component_fmris: |
| | | raise ValueError('Component FMRIs is empty for path ' + component_path + '.') |
| | | |
| | | component_relative_path = component_path.split(os.path.join(os.environ['WS_TOP'], subdir))[-1].replace('/', '', 1) |
| | | |