summaryrefslogtreecommitdiff
path: root/guix/profiles.scm
diff options
context:
space:
mode:
Diffstat (limited to 'guix/profiles.scm')
-rw-r--r--guix/profiles.scm7
1 files changed, 5 insertions, 2 deletions
diff --git a/guix/profiles.scm b/guix/profiles.scm
index 6c88759cae..c62d7f4d22 100644
--- a/guix/profiles.scm
+++ b/guix/profiles.scm
@@ -1815,9 +1815,12 @@ MANIFEST."
#:create-all-directories? #t
#:log-port (%make-void-port "w"))
- ;; Clear files that are going to be regenerated.
+ ;; Clear files that are going to be regenerated, or copied from
+ ;; a different place, in order to prevent failures during profile
+ ;; generation.
(with-directory-excursion "/tmp/texlive/share/texmf-dist"
- (for-each delete-file
+ (for-each (lambda (file)
+ (when (file-exists? file) (delete-file file)))
(list "fonts/map/dvipdfmx/updmap/kanjix.map"
"fonts/map/dvips/updmap/builtin35.map"
"fonts/map/dvips/updmap/download35.map"