ruby-build-system: Make phase "replace-git-ls-files" handle more cases.

* guix/build/ruby-build-system.scm (replace-git-ls-files): Modify.
This commit is contained in:
Danny Milosavljevic 2018-07-24 22:46:55 +02:00
parent 999ffb26df
commit 8376f10a30
No known key found for this signature in database
GPG key ID: E71A35542C30BAA5

View file

@ -78,7 +78,8 @@ (define* (replace-git-ls-files #:key source #:allow-other-keys)
(when (not (gem-archive? source))
(let ((gemspec (first-gemspec)))
(substitute* gemspec
(("`git ls-files`") "`find . -type f |sort`"))))
(("`git ls-files`") "`find . -type f |sort`")
(("`git ls-files -z`") "`find . -type f -print0 |sort -z`"))))
#t)
(define* (extract-gemspec #:key source #:allow-other-keys)