profiles: 'manifest-add' truly deletes duplicate entries.
authorLudovic Courtès <ludo@gnu.org>
Thu, 1 Mar 2018 10:37:36 +0000 (11:37 +0100)
committerLudovic Courtès <ludo@gnu.org>
Thu, 1 Mar 2018 13:00:21 +0000 (14:00 +0100)
commit435603a1d6106b535cf143d17cb030b2d0795b54
tree01ff81d92ae52d7d9046e286b94d91902f5236b8
parentacb59d99dbb8779ecf41cdbba45d2ce8ba88f5ed
profiles: 'manifest-add' truly deletes duplicate entries.

Fixes <https://bugs.gnu.org/30569>.
Reported by Andreas Enge <andreas@enge.fr>.

* guix/profiles.scm (manifest-add): Don't append ENTRIES as is.
Instead, cons each element of ENTRIES as we fold over it.
Remove unneeded ellispes in 'match' patterns.
guix/profiles.scm
tests/profiles.scm