Fix owner/group in tar invocation

This commit is contained in:
Eelco Dolstra 2012-05-22 19:40:40 -04:00
parent 6814b1dfa1
commit 0301525e6c

View file

@ -110,7 +110,7 @@ let
mkdir -p $out/nix-support mkdir -p $out/nix-support
echo "file binary-dist $fn" >> $out/nix-support/hydra-build-products echo "file binary-dist $fn" >> $out/nix-support/hydra-build-products
tar cvfj $fn \ tar cvfj $fn \
--owner=root --group=root --absolute-names \ --owner=0 --group=0 --absolute-names \
--transform "s,$TMPDIR/install,/usr/bin/nix-finish-install," \ --transform "s,$TMPDIR/install,/usr/bin/nix-finish-install," \
--transform "s,$TMPDIR/reginfo,/nix/store/reginfo," \ --transform "s,$TMPDIR/reginfo,/nix/store/reginfo," \
$TMPDIR/install $TMPDIR/reginfo $storePaths $TMPDIR/install $TMPDIR/reginfo $storePaths