~evhan/dust#10: 
Use move-file instead of rename-file

Hello,

On my netbook I got the following error:

$ dust install base 5.1.0
Error: cannot rename file - Cross-device link (chicken-5.1.0-x86_64-linux-gnu /home/theo/.local/share/dust/user/theo/version/base)

It happens because rename-file is not usable on different file systems and the tar archive is (I guess) initially on the tmpfs mounted on /tmp

Status
RESOLVED FIXED
Submitter
~lattay
Assigned to
No-one
Submitted
5 years ago
Updated
5 years ago
Labels
No labels applied.

~evhan 5 years ago

Yeah, that sounds right. I'll have a look.

~evhan 5 years ago

Right, so it's not as simple as switching to `move-file' since this is a directory tree, not a regular file. Not a big deal, it just means I won't have a fix ready for you tonight.

~evhan 5 years ago

One last note: this is a regression introduced in 0.0.6, caused by switching to a "real" temporary directory rather than a disposable directory under the dust storage path.

~lattay 5 years ago

Alright, thank you for having a look. Indeed, I tried to compile simply after switching from rename-file to move-file and it did not fix the problem. I will look for a solution on my side. If I find something satisfying, I may submit the patch to you.

~evhan REPORTED FIXED 5 years ago

Alright, this should be fixed in version 0.0.7. Thank you for the report and sorry for the disruption!

Register here or Log in to comment, or comment via email.