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

Method to_string

vulnerabilities/rpm_utils.py:45–53  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

43 return self.to_string()
44
45 def to_string(self):
46 if self.release:
47 vr = f"{self.version}-{self.release}"
48 else:
49 vr = self.version
50
51 if self.epoch:
52 vr = ":".join([str(self.epoch), vr])
53 return vr
54
55
56# https://github.com/nexB/scancode-toolkit/blob/16ae20a343c5332114edac34c7b6fcf2fb6bca74/src/packagedcode/nevra.py#L36

Callers 8

__str__Method · 0.95
rpm_to_purlFunction · 0.95
merged_advisoryFunction · 0.45
get_vcs_dataMethod · 0.45
classify_patch_sourceFunction · 0.45
get_purl_hashFunction · 0.45
test_generate_purlMethod · 0.45

Calls

no outgoing calls

Tested by 1

test_generate_purlMethod · 0.36