Skip to content

Commit a937044

Browse files
committed
chore: minor fixes
Signed-off-by: Ben Selwyn-Smith <[email protected]>
1 parent 2fcc15d commit a937044

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/macaron/artifact/local_artifact.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,8 @@ def get_local_artifact_hash(purl: PackageURL, artifact_dirs: list[str]) -> str |
281281
artifact_target = construct_primary_jar_file_name(purl)
282282

283283
# TODO add support for other PURL types here.
284+
# Other purl types can be easily supported if user provided artifacts are accepted from the command line.
285+
# See https://github.com/oracle/macaron/issues/498.
284286

285287
if not artifact_target:
286288
logger.debug("PURL type not supported: %s", purl.type)

src/macaron/repo_finder/repo_finder.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,6 @@ def find_repo(
111111
logger.debug("Analyzing %s with Repo Finder: %s", purl, type(repo_finder))
112112
found_repo, outcome = repo_finder.find_repo(purl)
113113

114-
print(package_registries_info)
115-
116114
if not found_repo:
117115
found_repo, outcome = find_repo_alternative(purl, outcome, package_registries_info)
118116

src/macaron/repo_finder/repo_finder_pypi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def find_repo(
5858
pypi_registry = next((registry for registry in PACKAGE_REGISTRIES if isinstance(registry, PyPIRegistry)), None)
5959
if not pypi_registry:
6060
return "", RepoFinderInfo.PYPI_NO_REGISTRY
61-
pypi_asset = PyPIPackageJsonAsset(purl.name, purl.version, False, pypi_registry, {})
61+
pypi_asset = PyPIPackageJsonAsset(purl.name, purl.version, False, pypi_registry, {}, "")
6262

6363
if not pypi_asset:
6464
# This should be unreachable, as the pypi_registry has already been confirmed to be of type PyPIRegistry.

0 commit comments

Comments
 (0)