[gnome-autoar/wip/oholy/extractor-one-file-same-name-fix: 5/6] extractor: Print debug when conflict happened
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-autoar/wip/oholy/extractor-one-file-same-name-fix: 5/6] extractor: Print debug when conflict happened
- Date: Tue, 25 May 2021 05:27:58 +0000 (UTC)
commit 51f6f0346f7bb8ffd305ccb45a60d12f82af02f2
Author: Ondrej Holy <oholy redhat com>
Date: Mon May 10 15:02:12 2021 +0200
extractor: Print debug when conflict happened
The debug output doesn't contain info when conflict happens. This makes
hard to debug issues which are caused by them. Let's print one when
a conflict happens to make it obvious.
gnome-autoar/autoar-extractor.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/gnome-autoar/autoar-extractor.c b/gnome-autoar/autoar-extractor.c
index 96790a0..328fc1b 100644
--- a/gnome-autoar/autoar-extractor.c
+++ b/gnome-autoar/autoar-extractor.c
@@ -1896,6 +1896,8 @@ autoar_extractor_step_extract (AutoarExtractor *self) {
while (file_conflict) {
GFile *new_extracted_filename = NULL;
+ g_debug ("autoar_extractor_step_extract: conflict detected");
+
/* Do not try to solve any conflicts in parents for now. Especially
* symlinks in parents are dangerous as it can easily happen that files
* are written outside of the destination. The tar cmd fails to extract
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]