MCPcopy Create free account
hub / github.com/aboutcode-org/vulnerablecode / get_fixed_purl

Method get_fixed_purl

vulnerabilities/importer.py:341–347  ·  view source on GitHub ↗

Return a Package URL corresponding to object's fixed_version

(self)

Source from the content-addressed store, hash-verified

339 )
340
341 def get_fixed_purl(self):
342 """
343 Return a Package URL corresponding to object's fixed_version
344 """
345 if not self.fixed_version:
346 raise ValueError(f"Affected Package {self.package!r} does not have a fixed version")
347 return update_purl_version(purl=self.package, version=str(self.fixed_version))
348
349 def __lt__(self, other):
350 if not isinstance(other, AffectedPackage):

Callers

nothing calls this directly

Calls 1

update_purl_versionFunction · 0.90

Tested by

no test coverage detected