diff options
author | Théophane Hufschmitt <theophane.hufschmitt@tweag.io> | 2022-04-13 14:10:36 +0200 |
---|---|---|
committer | Théophane Hufschmitt <theophane.hufschmitt@tweag.io> | 2022-08-03 10:27:25 +0200 |
commit | d71d9e9fbfc972514b0b940181ab7f9e766f41f3 (patch) | |
tree | a8506bbfbada81f76ca460f090f65ef41d3294ca /src/libstore/builtins/unpack-channel.cc | |
parent | a4f0fd633c9ec865d385b34bdc51923c204e7ff0 (diff) |
moveFile -> renameFile
`move` tends to have this `mv` connotation of “I will copy it for you if
needs be”
Diffstat (limited to 'src/libstore/builtins/unpack-channel.cc')
-rw-r--r-- | src/libstore/builtins/unpack-channel.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/builtins/unpack-channel.cc b/src/libstore/builtins/unpack-channel.cc index a8417d7ff..ba04bb16c 100644 --- a/src/libstore/builtins/unpack-channel.cc +++ b/src/libstore/builtins/unpack-channel.cc @@ -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)); } } |