build/glib-or-gtk-build-system: Fix 'generate-icon-cache'.
Reported by Mark H Weaver <mhw@netris.org> * guix/build/glib-or-gtk-build-system.scm (generate-icon-cache): Add check for existence of icons directory.
This commit is contained in:
parent
65cd77db20
commit
f5895dab8a
|
@ -217,6 +217,7 @@ needed."
|
||||||
((output . directory)
|
((output . directory)
|
||||||
(let ((iconsdir (string-append directory
|
(let ((iconsdir (string-append directory
|
||||||
"/share/icons")))
|
"/share/icons")))
|
||||||
|
(when (file-exists? iconsdir)
|
||||||
(with-directory-excursion iconsdir
|
(with-directory-excursion iconsdir
|
||||||
(for-each
|
(for-each
|
||||||
(lambda (dir)
|
(lambda (dir)
|
||||||
|
@ -232,7 +233,7 @@ needed."
|
||||||
(not (equal? name "."))
|
(not (equal? name "."))
|
||||||
(not (equal? name ".."))
|
(not (equal? name ".."))
|
||||||
(equal? 'directory
|
(equal? 'directory
|
||||||
(stat:type (stat name))))))))
|
(stat:type (stat name)))))))))
|
||||||
#t)))
|
#t)))
|
||||||
outputs))
|
outputs))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue