[gnome-autoar/wip/oholy/extractor-one-file-same-name-fix: 3/3] tests: Skip conflicting files by default over test-extract




commit 47b643b21f79193d1d9a85bd1cef5be1fde80e16
Author: Ondrej Holy <oholy redhat com>
Date:   Mon May 10 15:05:12 2021 +0200

    tests: Skip conflicting files by default over test-extract
    
    By default, the conflicting files are skipped and this default behavior is
    also used by Nautilus and other clients. However, the `test-extract` util
    overwrites the files instead. Let's honor the default behavior here as well
    to make debugging easier.

 tests/test-extract.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/tests/test-extract.c b/tests/test-extract.c
index 660e18f..f92c999 100644
--- a/tests/test-extract.c
+++ b/tests/test-extract.c
@@ -65,7 +65,7 @@ my_handler_conflict (AutoarExtractor *extractor,
 
   g_print ("Conflict on: %s\n", path);
 
-  return AUTOAR_CONFLICT_OVERWRITE;
+  return AUTOAR_CONFLICT_UNHANDLED;
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]