ubuntu-make icon indicating copy to clipboard operation
ubuntu-make copied to clipboard

clean-up install directory on failure

Open thibran opened this issue 8 years ago • 1 comments

In case of a failure when installing something, I would expect umake to clean-up all downloaded files and created folders, restoring somewhat the state pre-umake-installation.

E.g.: When installing go using umake go to ~/.local/share/umake/go/go-lang, umake should delete ~/.local/share/umake/go/go-lang on failure.

thibran avatar Dec 09 '16 16:12 thibran

This is good and valid, thanks for the suggestion! This could be a good first contributor patch, will use it as such.

There is only one tricky thing to remember for whoever implements this: in case of a reinstall, if the failure happens before unpacking the archive, then, don't remove the directory. We need to decide if the failure happens during unpacking if we moved the initial directory content first to restore it or not (which could be an issue space-wise).

didrocks avatar Dec 12 '16 07:12 didrocks