HomeSoftware Heritage

storage.fossology_license_add: Fix one insert query too many

Description

storage.fossology_license_add: Fix one insert query too many

Prior to this commit, this ended up running twice the insertion query. First
time, on conflict actually inserting data, then running again. The second extra
time being a noop (plus costing extra time), thus returning a summary of no new
elements inserted.

The tests must be improved to actually check the insertion output. It's not the
case or it would have been caught already.

Details

Provenance
ardumontAuthored on Mar 5 2020, 1:37 PM
ardumontPushed on Mar 5 2020, 1:42 PM
Parents
rDCIDX40ced956bfb4: tests: Migrate some tests to pytest
Branches
Unknown
Tags
Unknown
Build Status
Buildable 10928
Build 16439: test-and-buildJenkins