summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-11-21 15:57:18 +0100
committerinfirit <[email protected]>2014-11-22 20:25:30 +0100
commit426e0a1e83957fd1b351a2828e667e1b7746f776 (patch)
tree2702733107016d90876315e18952301effed022b
parent0aa764633aaea65d60a12f4b13e8fceb32ff8173 (diff)
downloadengrampa-426e0a1e83957fd1b351a2828e667e1b7746f776.tar.bz2
engrampa-426e0a1e83957fd1b351a2828e667e1b7746f776.tar.xz
improved readability of code
Based on FR commit: c9ea52f8a3633a97ef64af1e18f9ff5b8e1474a9 From: Paolo Bacchilega <[email protected]>
-rw-r--r--src/fr-archive.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/fr-archive.c b/src/fr-archive.c
index 57bf8e3..ddaefc9 100644
--- a/src/fr-archive.c
+++ b/src/fr-archive.c
@@ -1583,7 +1583,7 @@ fr_archive_add (FrArchive *archive,
fr_archive_stoppable (archive, fr_archive_add_is_stoppable (archive));
- tmp_base_dir = g_strdup (base_dir);
+ /* dest_dir is the destination folder inside the archive */
if ((dest_dir != NULL) && (*dest_dir != '\0') && (strcmp (dest_dir, "/") != 0)) {
const char *rel_dest_dir = dest_dir;
@@ -1600,8 +1600,10 @@ fr_archive_add (FrArchive *archive,
new_file_list = g_list_prepend (new_file_list, g_build_filename (rel_dest_dir, filename, NULL));
}
}
- else
+ else {
+ tmp_base_dir = g_strdup (base_dir);
new_file_list = path_list_dup(file_list);
+ }
/* if the command cannot update, get the list of files that are
* newer than the ones in the archive. */