diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-06-04T12·55+0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-06-04T12·55+0200 |
commit | b190f771e7e23db363f7cb40db0e538557bbea30 (patch) | |
tree | 0f1c8e864810b2d2e36c3ee6de49dd2b2cd69568 /scripts/copy-from-other-stores.pl.in | |
parent | 07d7e7df84bf9bc381fbe56137bc47f5db7763ca (diff) |
copy-from-other-stores: Use cp
Diffstat (limited to 'scripts/copy-from-other-stores.pl.in')
-rwxr-xr-x | scripts/copy-from-other-stores.pl.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/copy-from-other-stores.pl.in b/scripts/copy-from-other-stores.pl.in index 8ce5a9d4049f..9b0615fe1a10 100755 --- a/scripts/copy-from-other-stores.pl.in +++ b/scripts/copy-from-other-stores.pl.in @@ -94,7 +94,7 @@ elsif ($ARGV[0] eq "--substitute") { my ($store, $sourcePath) = findStorePath $storePath; die unless $store; print STDERR "\n*** Copying ‘$storePath’ from ‘$sourcePath’\n\n"; - system("$binDir/nix-store --dump $sourcePath | $binDir/nix-store --restore $destPath") == 0 + system("@coreutils@/cp", "-rpd", $sourcePath, $destPath) == 0 or die "cannot copy ‘$sourcePath’ to ‘$storePath’"; print "\n"; # no hash to verify } |