mirror of
https://github.com/NixOS/nix.git
synced 2025-11-13 05:56:03 +01:00
moveFile -> renameFile
`move` tends to have this `mv` connotation of “I will copy it for you if needs be”
This commit is contained in:
parent
a4f0fd633c
commit
d71d9e9fbf
9 changed files with 13 additions and 13 deletions
|
|
@ -22,7 +22,7 @@ void builtinUnpackChannel(const BasicDerivation & drv)
|
|||
auto entries = readDirectory(out);
|
||||
if (entries.size() != 1)
|
||||
throw Error("channel tarball '%s' contains more than one file", src);
|
||||
moveFile((out + "/" + entries[0].name), (out + "/" + channelName));
|
||||
renameFile((out + "/" + entries[0].name), (out + "/" + channelName));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue