summaryrefslogtreecommitdiff
path: root/guix/build
diff options
context:
space:
mode:
authorDanny Milosavljevic <dannym@scratchpost.org>2018-07-24 22:46:55 +0200
committerDanny Milosavljevic <dannym@scratchpost.org>2018-07-24 22:55:38 +0200
commit8376f10a30c1bb246689ba68984e680ddf0dffa1 (patch)
tree0143444481feceedb0c178ff04d4bb7769d9868c /guix/build
parent999ffb26df16c5a95aab4378c0f65f84615efa1a (diff)
downloadgnu-guix-8376f10a30c1bb246689ba68984e680ddf0dffa1.tar
gnu-guix-8376f10a30c1bb246689ba68984e680ddf0dffa1.tar.gz
ruby-build-system: Make phase "replace-git-ls-files" handle more cases.
* guix/build/ruby-build-system.scm (replace-git-ls-files): Modify.
Diffstat (limited to 'guix/build')
-rw-r--r--guix/build/ruby-build-system.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/guix/build/ruby-build-system.scm b/guix/build/ruby-build-system.scm
index a346e9fb8e..3a658e2557 100644
--- a/guix/build/ruby-build-system.scm
+++ b/guix/build/ruby-build-system.scm
@@ -78,7 +78,8 @@ operation is not deterministic, we replace it with `find`."
(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)