summaryrefslogtreecommitdiff
path: root/src/fr-command-tar.c
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-11-21 16:15:13 +0100
committerinfirit <[email protected]>2014-11-22 20:25:30 +0100
commit012914111652a7ee64abe08f457cd9eb77bc5f35 (patch)
tree3cc10cf2f997e3b6527902e724b77e1152614623 /src/fr-command-tar.c
parent0b3b7eef61287213308e14639444e1953b52ac04 (diff)
downloadengrampa-012914111652a7ee64abe08f457cd9eb77bc5f35.tar.bz2
engrampa-012914111652a7ee64abe08f457cd9eb77bc5f35.tar.xz
no need to force archive recompress
if the operation is canceled we can safely delete the archive as it is just a copy of the original. Based on FR commit: abfe5ef77bce70295e88bddc34972ac22cb270bc From: Paolo Bacchilega <[email protected]>
Diffstat (limited to 'src/fr-command-tar.c')
-rw-r--r--src/fr-command-tar.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/fr-command-tar.c b/src/fr-command-tar.c
index ed63edb..7b7ef02 100644
--- a/src/fr-command-tar.c
+++ b/src/fr-command-tar.c
@@ -517,7 +517,6 @@ fr_command_tar_recompress (FrCommand *comm)
if (is_mime_type (comm->mime_type, "application/x-compressed-tar")) {
fr_process_begin_command (comm->process, "gzip");
- fr_process_set_sticky (comm->process, TRUE);
fr_process_set_begin_func (comm->process, begin_func__recompress, comm);
fr_process_set_continue_func (comm->process, gzip_continue_func, comm);
switch (comm->compression) {
@@ -538,7 +537,6 @@ fr_command_tar_recompress (FrCommand *comm)
}
else if (is_mime_type (comm->mime_type, "application/x-bzip-compressed-tar")) {
fr_process_begin_command (comm->process, "bzip2");
- fr_process_set_sticky (comm->process, TRUE);
fr_process_set_begin_func (comm->process, begin_func__recompress, comm);
switch (comm->compression) {
case FR_COMPRESSION_VERY_FAST:
@@ -558,7 +556,6 @@ fr_command_tar_recompress (FrCommand *comm)
}
else if (is_mime_type (comm->mime_type, "application/x-tarz")) {
fr_process_begin_command (comm->process, "compress");
- fr_process_set_sticky (comm->process, TRUE);
fr_process_set_begin_func (comm->process, begin_func__recompress, comm);
fr_process_add_arg (comm->process, "-f");
fr_process_add_arg (comm->process, c_tar->uncomp_filename);
@@ -568,7 +565,6 @@ fr_command_tar_recompress (FrCommand *comm)
}
else if (is_mime_type (comm->mime_type, "application/x-lrzip-compressed-tar")) {
fr_process_begin_command (comm->process, "lrzip");
- fr_process_set_sticky (comm->process, TRUE);
fr_process_set_begin_func (comm->process, begin_func__recompress, comm);
switch (comm->compression) {
case FR_COMPRESSION_VERY_FAST:
@@ -588,7 +584,6 @@ fr_command_tar_recompress (FrCommand *comm)
}
else if (is_mime_type (comm->mime_type, "application/x-lzip-compressed-tar")) {
fr_process_begin_command (comm->process, "lzip");
- fr_process_set_sticky (comm->process, TRUE);
fr_process_set_begin_func (comm->process, begin_func__recompress, comm);
switch (comm->compression) {
case FR_COMPRESSION_VERY_FAST:
@@ -608,7 +603,6 @@ fr_command_tar_recompress (FrCommand *comm)
}
else if (is_mime_type (comm->mime_type, "application/x-lzma-compressed-tar")) {
fr_process_begin_command (comm->process, "lzma");
- fr_process_set_sticky (comm->process, TRUE);
fr_process_set_begin_func (comm->process, begin_func__recompress, comm);
switch (comm->compression) {
case FR_COMPRESSION_VERY_FAST:
@@ -628,7 +622,6 @@ fr_command_tar_recompress (FrCommand *comm)
}
else if (is_mime_type (comm->mime_type, "application/x-xz-compressed-tar")) {
fr_process_begin_command (comm->process, "xz");
- fr_process_set_sticky (comm->process, TRUE);
fr_process_set_begin_func (comm->process, begin_func__recompress, comm);
switch (comm->compression) {
case FR_COMPRESSION_VERY_FAST:
@@ -648,7 +641,6 @@ fr_command_tar_recompress (FrCommand *comm)
}
else if (is_mime_type (comm->mime_type, "application/x-lzop-compressed-tar")) {
fr_process_begin_command (comm->process, "lzop");
- fr_process_set_sticky (comm->process, TRUE);
fr_process_set_begin_func (comm->process, begin_func__recompress, comm);
switch (comm->compression) {
case FR_COMPRESSION_VERY_FAST:
@@ -671,7 +663,6 @@ fr_command_tar_recompress (FrCommand *comm)
FrCommandTar *comm_tar = (FrCommandTar*) comm;
fr_process_begin_command (comm->process, comm_tar->compress_command);
- fr_process_set_sticky (comm->process, TRUE);
fr_process_set_begin_func (comm->process, begin_func__recompress, comm);
switch (comm->compression) {
case FR_COMPRESSION_VERY_FAST:
@@ -708,7 +699,6 @@ fr_command_tar_recompress (FrCommand *comm)
/* Restore original name. */
fr_process_begin_command (comm->process, "mv");
- fr_process_set_sticky (comm->process, TRUE);
fr_process_add_arg (comm->process, "-f");
fr_process_add_arg (comm->process, new_name);
fr_process_add_arg (comm->process, comm->filename);