Cut and paste of file in same archive deletes file from archive
As mentioned in https://bugzilla.redhat.com/show_bug.cgi?id=1243347:
Description of problem: cutting and pasting the file in the same location leads into the file being deleted. First the file is copied onto itself, and since we're performing a cut action, the source file (in this case the same file) is deleted afterwards. With i.e. a similar action in nautilus, file is merely copied over itself, not removed afterwards.
Version-Release number of selected component (if applicable): file-roller-3.14.2-3.el7.x86_64
How reproducible: 100%
Steps to Reproduce:
- create tar.gz compressed archive with at least one file in it
- open it in file-roller
- select any file and in right-click context menu press Cut
- open archive context-menu (right-click the spare area) and press Paste
- confirm the location dialog
Actual results: the file is removed
Expected results: file should be replaced by itself (e.g. no change)