diff --git a/app/appstate.py b/app/appstate.py index a9a0e12..33fdd81 100644 --- a/app/appstate.py +++ b/app/appstate.py @@ -488,7 +488,7 @@ class Source: """If the package has the metadata required for vulnerabilities to be detected""" references = self.pkgextra.references # Roughly what our external scanner supports atm - return "pypi" in references or "purl" in references or "cpe" in references + return "purl" in references or "cpe" in references @property def repos(self) -> list[str]: diff --git a/app/fetch/pypi.py b/app/fetch/pypi.py index 1aa043b..ccf73dc 100644 --- a/app/fetch/pypi.py +++ b/app/fetch/pypi.py @@ -35,11 +35,6 @@ def extract_pypi_project_from_purl(purl: str) -> str | None: def extract_pypi_project_from_references(references: dict[str, list[str | None]]) -> str | None: - if "pypi" in references: - for entry in references["pypi"]: - if entry is not None: - return entry - for purl in references.get("purl", []): if purl is None: continue