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

Method to_string

src/packagedcode/rpm.py:117–125  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

115 return self.to_string()
116
117 def to_string(self):
118 if self.release:
119 vr = f'{self.version}-{self.release}'
120 else:
121 vr = self.version
122
123 if self.epoch:
124 vr = ':'.join([self.epoch, vr])
125 return vr
126
127
128# TODO: add dependencies!!!

Callers 15

__str__Method · 0.95
get_unknown_purlFunction · 0.80
D_dependencies_handlerFunction · 0.80
o_source_package_handlerFunction · 0.80
get_dependenciesFunction · 0.80
parseMethod · 0.80
_deps_mapperFunction · 0.80
get_base_purlFunction · 0.80
_parseFunction · 0.80

Calls 1

joinMethod · 0.45

Tested by 1

purl_with_fake_uuidFunction · 0.64