From b190f771e7e23db363f7cb40db0e538557bbea30 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 4 Jun 2015 14:55:40 +0200 Subject: [PATCH] copy-from-other-stores: Use cp --- scripts/copy-from-other-stores.pl.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/copy-from-other-stores.pl.in b/scripts/copy-from-other-stores.pl.in index 8ce5a9d40..9b0615fe1 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 }