graft: Only create directory when needed.
* guix/build/graft.scm (rewrite-directory)[rewrite-leaf]: Only create the parent directories when they don't already exist. Change-Id: I802aac4d6090ed07effddde3eb3195f64aca31d3master
parent
c74401749a
commit
56395b12f6
|
@ -347,7 +347,8 @@ file name pairs."
|
|||
(define (rewrite-leaf file)
|
||||
(let ((stat (lstat file))
|
||||
(dest (destination file)))
|
||||
(mkdir-p (dirname dest))
|
||||
(unless (file-exists? (dirname dest))
|
||||
(mkdir-p (dirname dest)))
|
||||
(case (stat:type stat)
|
||||
((symlink)
|
||||
(let ((target (readlink file)))
|
||||
|
|
Reference in New Issue