build/glib-or-gtk: Avoid duplicate entries in gdk-pixbuf loaders cache.

* guix/build/glib-or-gtk-build-system.scm (generate-gdk-pixbuf-loaders-cache):
Delete duplicate directories passed as input.
This commit is contained in:
Maxim Cournoyer 2023-04-13 13:22:18 -04:00
parent e6604e4b43
commit 6de7e0e54c
No known key found for this signature in database
GPG Key ID: 1260E46482E63562

View File

@ -213,7 +213,7 @@ variable. The cache file is installed under OUTPUTS. Return the first cache
file name if one was created else #f."
(let* ((loaders (append-map
(cut find-files <> "^libpixbufloader-.*\\.so$")
directories))
(delete-duplicates directories)))
(outputs* (map (cut string-append <> "/"
%gdk-pixbuf-loaders-cache-file)
outputs))