* Do the right thing if $sourceRoot contains spaces. Contributed by

Jeevakan Suresh.

svn path=/nixpkgs/branches/stdenv-updates/; revision=13287
This commit is contained in:
Eelco Dolstra 2008-11-14 10:22:15 +00:00
parent 28b96c18c7
commit 903ca0fc40

View File

@ -517,7 +517,7 @@ unpackPhase() {
echo "unpacker produced multiple directories" echo "unpacker produced multiple directories"
exit 1 exit 1
fi fi
sourceRoot=$i sourceRoot="$i"
;; ;;
esac esac
fi fi
@ -535,7 +535,7 @@ unpackPhase() {
# necessary when sources have been copied from other store # necessary when sources have been copied from other store
# locations. # locations.
if test "dontMakeSourcesWritable" != 1; then if test "dontMakeSourcesWritable" != 1; then
chmod -R u+w $sourceRoot chmod -R u+w "$sourceRoot"
fi fi
eval "$postUnpack" eval "$postUnpack"