Fail early if a package lookup fails when loading a revision

I think this might be happening when packages are filtered out as
duplicates (by name and version), but then a reference to a duplicate occurs
somewhere, like in a lint warning.
This commit is contained in:
Christopher Baines 2020-01-21 23:53:52 +00:00
parent bf25a8db02
commit a66cbd41f9

View file

@ -896,7 +896,13 @@ WHERE job_id = $1"
packages
package-ids))))
(lambda (inferior-id)
(hashq-ref lookup-table inferior-id)))))
(or
(hashq-ref lookup-table inferior-id)
(error
(simple-format
#f
"error: inferior-package-id->package-database-id: ~A missing\n"
inferior-id)))))))
(simple-format
#t "debug: finished loading information from inferior\n")