From 016eab3e29263045b1422289b7ec9382edc725f9 Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Sun, 29 Jan 2023 01:00:00 +0100 Subject: gnu: papirus-icon-theme: Recursively resolve symlinks. This follows up on commit aed385e18ec7b68a0bc1bb4b173aeadc9cd97245. * gnu/packages/gnome-xyz.scm (papirus-icon-theme)[arguments]: Replace READLINK with CANONICALIZE-PATH to resolve symlink chains. --- gnu/packages/gnome-xyz.scm | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'gnu/packages/gnome-xyz.scm') diff --git a/gnu/packages/gnome-xyz.scm b/gnu/packages/gnome-xyz.scm index 0cb4adac76..e1d0e5ec07 100644 --- a/gnu/packages/gnome-xyz.scm +++ b/gnu/packages/gnome-xyz.scm @@ -227,11 +227,10 @@ simple and consistent.") (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"))) -- cgit v1.2.3