Skip to content

Commit e73235c

Browse files
committed
chore: minor fix
Signed-off-by: Ben Selwyn-Smith <[email protected]>
1 parent f3a5419 commit e73235c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/macaron/repo_finder/repo_finder_pypi.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def find_repo(
3737
return "", RepoFinderInfo.PYPI_NO_REGISTRY
3838

3939
pypi_registry.load_defaults()
40-
pypi_asset = PyPIPackageJsonAsset(purl.name, purl.version, pypi_registry, {})
40+
pypi_asset = PyPIPackageJsonAsset(purl.name, purl.version, False, pypi_registry, {})
4141
if not pypi_asset.download(dest=""):
4242
return "", RepoFinderInfo.PYPI_HTTP_ERROR
4343

@@ -80,6 +80,7 @@ def find_repo(
8080
fragment=parsed_url.fragment,
8181
).geturl()
8282
logger.debug("Found repository URL from PyPI: %s", fixed_url)
83+
pypi_asset.has_repository = True
8384
return fixed_url, RepoFinderInfo.FOUND_FROM_PYPI
8485

8586
return "", RepoFinderInfo.PYPI_NO_URLS

0 commit comments

Comments
 (0)