mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 14:06:16 +02:00
copy-from-other-stores: Use cp
This commit is contained in:
parent
07d7e7df84
commit
b190f771e7
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ elsif ($ARGV[0] eq "--substitute") {
|
||||||
my ($store, $sourcePath) = findStorePath $storePath;
|
my ($store, $sourcePath) = findStorePath $storePath;
|
||||||
die unless $store;
|
die unless $store;
|
||||||
print STDERR "\n*** Copying ‘$storePath’ from ‘$sourcePath’\n\n";
|
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’";
|
or die "cannot copy ‘$sourcePath’ to ‘$storePath’";
|
||||||
print "\n"; # no hash to verify
|
print "\n"; # no hash to verify
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue