HomeSoftware Heritage

RawExtrinsicMetadata: Use ExtendedSWHID as target and remove type

Description

RawExtrinsicMetadata: Use ExtendedSWHID as target and remove type

ExtendedSWHID can identify either a software artifact or an origin,
so we no longer need Union[SWHID, str].

Therefore, we no longer need the 'type' attribute, as it was only
used to tell when the target is a SWHID and when it's an origin URL.

Details

Provenance
vlorentzAuthored on Feb 26 2021, 11:34 AM
vlorentzPushed on Mar 1 2021, 5:59 PM
Parents
rDMOD256bca2cbafa: Add a swhid() method to all hashable objects.
Branches
Unknown
Tags
Unknown
Build Status
Buildable 19591
Build 30401: test-and-buildJenkins console · Jenkins