pkgs/applications/version-management/git-and-tools/git: fixed the build to deal with names that contain whitespace
The "find -print | while read" loop failed to deal with paths that contain whitespace. Instead, we now use a similar construct that's based on globbing. svn path=/nixpkgs/trunk/; revision=25454
This commit is contained in:
parent
167f185411
commit
f989b670d6
@ -113,7 +113,9 @@ stdenv.mkDerivation rec {
|
|||||||
# This reduces the size of $out from 115MB down to 13MB on x86_64-linux!
|
# This reduces the size of $out from 115MB down to 13MB on x86_64-linux!
|
||||||
+ ''#
|
+ ''#
|
||||||
declare -A seen
|
declare -A seen
|
||||||
find $out -type f | while read f; do
|
shopt -s globstar
|
||||||
|
for f in "$out/"**; do
|
||||||
|
test -f "$f" || continue
|
||||||
sum=$(md5sum "$f");
|
sum=$(md5sum "$f");
|
||||||
sum=''\${sum/ */}
|
sum=''\${sum/ */}
|
||||||
if [ -z "''\${seen["$sum"]}" ]; then
|
if [ -z "''\${seen["$sum"]}" ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user