packageurl-python icon indicating copy to clipboard operation
packageurl-python copied to clipboard

Add convenience method to replace a purl component

Open pombredanne opened this issue 3 years ago • 1 comments

The current implementation uses a namedtuple for PackageURL but this is an implementation detail that should be relied uppon. We should have a method to create a new purl from an existing purl passing new field values as arguments.

pombredanne avatar Apr 10 '22 07:04 pombredanne

See also https://github.com/package-url/packageurl-python/issues/87#issuecomment-1167518807

@pombredanne what about implementing a new update() method on the PackageURL class re-using the code from your evolve_purl function?

tdruez avatar Jun 27 '22 15:06 tdruez