Bug#453096: [PATCH] file-roller: create tar when adding first file.

Andreas Henriksson andreas at fatal.se
Wed Mar 12 13:12:41 UTC 2008


tags 453096 + patch
thanks

File-roller always seems to append to an archive, even when the archive
doesn't exist (yet) - which is the case when you create a new archive in
file-roller (they don't get created until you add the first file to them).
New versions of tar exit with an error status code when append to a
non-existant archive (but still creates the archive). This makes file-roller
show an error and not update the archive with the recently added file.

This completely untested patch (I'm running on another codebase) should
hopefully fix the problem by checking if the file exist, and if not use the
-cf tar option instead of -rf (or -uf).


-- 
Regards,
Andreas Henriksson
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fr-fix-createtar.diff
Type: text/x-diff
Size: 456 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20080312/0cf767f9/attachment.diff 


More information about the pkg-gnome-maintainers mailing list