HomeSoftware Heritage

swh.storage: Improve license endpoint's unknown license policy

Description

swh.storage: Improve license endpoint's unknown license policy

Prior to this commit, the content_fossology_license_add endpoint was
not symmetric with other endpoints since it returned the list of
licenses it was unable to deal with. Now, it simply adds those unknown
licenses in the fossology_license table. And it no longer returns
anything (as other endpoints).

Related T721

Details

Provenance
ardumontAuthored on Jun 6 2017, 2:24 PM
ardumontPushed on Jun 6 2017, 4:47 PM
Parents
rDSTOf681f83cdd84: swh.storage.archiver: Fix tests
Branches
Unknown
Tags
Unknown
Build Status
Buildable 880
Build 1175: Software Heritage Python tests