mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-27 04:59:27 -05:00
guix: profiles: Fix auto-generated file deletion.
* guix/profiles.scm (texlive-font-maps): Make sure auto-generated file exists
before deleting it, which is not guaranteed when creating the initial texmf
tree union.
This is a followup to e43cbeafd1
.
This commit is contained in:
parent
2c8da3d824
commit
c173819c8e
1 changed files with 5 additions and 2 deletions
|
@ -1815,9 +1815,12 @@ (define build
|
|||
#: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"
|
||||
|
|
Loading…
Reference in a new issue