Skip to content

Commit

Permalink
Merge pull request #68 from sachinshaji/main
Browse files Browse the repository at this point in the history
fix: skip debian components to find github urls
  • Loading branch information
tngraf committed May 11, 2024
2 parents 2a2bf55 + 3e60ec0 commit 97f03d8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion capycli/bom/findsources.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,12 @@ def find_sources(self, bom: Bom) -> Tuple[int, int]:
continue

source_url = None

# skip source URL check for debian components as github url s are invalid for Debian.
if component.bom_ref.value.startswith("pkg:deb/debian/"):
print_red("No source code check for debian components!")
continue

language = ""
for val in component.properties:
if val.name == "siemens:primaryLanguage":
Expand Down Expand Up @@ -546,7 +552,7 @@ def find_sources(self, bom: Bom) -> Tuple[int, int]:
source_url = self.find_source_url_recursive_by_sw360(component)

# deeper search on github
if not source_url and not component.bom_ref.value.startswith("pkg:deb/debian/"):
if not source_url:
if self.verbose:
print(" No Source code URL available - try to find on github:")
source_url = self.find_github_url(component)
Expand Down

0 comments on commit 97f03d8

Please sign in to comment.