[gnome-ostree] libqa: make sure to overwrite files when injecting journal exports



commit 57b1917446f3578d4eac64d1a02bc4558cc088ff
Author: Lionel Landwerlin <llandwerlin gmail com>
Date:   Wed Apr 3 18:54:21 2013 +0100

    libqa: make sure to overwrite files when injecting journal exports

 src/js/libqa.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/js/libqa.js b/src/js/libqa.js
index 4db8f0f..065352c 100644
--- a/src/js/libqa.js
+++ b/src/js/libqa.js
@@ -156,9 +156,9 @@ function injectExportJournal(currentDir, currentEtcDir, cancellable) {
     let exportScript = datadir.resolve_relative_path('tests/gnome-ostree-export-journal-to-serialdev');
     let exportScriptService = 
datadir.resolve_relative_path('tests/gnome-ostree-export-journal-to-serialdev.service');
     let exportBin = binDir.get_child(exportScript.get_basename());
-    exportScript.copy(exportBin, 0, cancellable, null, null);
+    exportScript.copy(exportBin, Gio.FileCopyFlags.OVERWRITE, cancellable, null, null);
     GSystem.file_chmod(exportBin, 493, cancellable);
-    exportScriptService.copy(multiuserWantsDir.get_child(exportScriptService.get_basename()), 0, 
cancellable, null, null);
+    exportScriptService.copy(multiuserWantsDir.get_child(exportScriptService.get_basename()), 
Gio.FileCopyFlags.OVERWRITE, cancellable, null, null);
 }
 
 function injectTestUserCreation(currentDir, currentEtcDir, username, params, cancellable) {


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