gnu: papirus-icon-theme: Recursively resolve symlinks.
This follows up on commit aed385e18e
.
* gnu/packages/gnome-xyz.scm (papirus-icon-theme)[arguments]: Replace
READLINK with CANONICALIZE-PATH to resolve symlink chains.
This commit is contained in:
parent
630b6e62d2
commit
016eab3e29
1 changed files with 4 additions and 5 deletions
|
@ -227,11 +227,10 @@ (define-public papirus-icon-theme
|
|||
(symlink? (lambda (_ stat)
|
||||
(eq? 'symlink (stat:type stat)))))
|
||||
(for-each (lambda (file)
|
||||
(with-directory-excursion (dirname file)
|
||||
(let ((target (readlink file)))
|
||||
(when (eq? 'regular (stat:type (stat target)))
|
||||
(delete-file file)
|
||||
(link target file)))))
|
||||
(let ((target (canonicalize-path file)))
|
||||
(when (eq? 'regular (stat:type (stat target)))
|
||||
(delete-file file)
|
||||
(link target file))))
|
||||
(find-files out symlink?))))))))
|
||||
(native-inputs
|
||||
(list `(,gtk+ "bin")))
|
||||
|
|
Loading…
Reference in a new issue