2
0
Fork 0
mirror of git://git.savannah.gnu.org/guix/data-service.git synced 2023-12-14 03:23:03 +01:00

Delete duplicate entries in the package-entries list

This can happen when the same package is defined with two names, for example,
with deprecated-package.
This commit is contained in:
Christopher Baines 2019-03-28 22:42:18 +00:00
parent 4619b7b575
commit b1ab70a226
No known key found for this signature in database
GPG key ID: 5E28A33B0B84F577

View file

@ -100,7 +100,7 @@ WHERE packages.id IN (
(filter (lambda (package-entry)
(not (vhash-assoc package-entry
existing-package-entry-ids)))
package-entries))
(delete-duplicates package-entries)))
(new-package-entry-ids
(if (null? missing-package-entries)
'()