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
diff --git a/src/fr-command-tar.c b/src/fr-command-tar.c index ffa9456..7104f26 100644 --- a/src/fr-command-tar.c +++ b/src/fr-command-tar.c @@ -326,7 +326,9 @@ fr_command_tar_add (FrCommand *comm, g_free (e_base_dir); } - if (update) + if (!path_is_file (c_tar->uncomp_filename)) + fr_process_add_arg (comm->process, "-cf"); + else if (update) fr_process_add_arg (comm->process, "-uf"); else fr_process_add_arg (comm->process, "-rf");

