summaryrefslogtreecommitdiff
path: root/libappstream-glib/as-store.c
diff options
context:
space:
mode:
Diffstat (limited to 'libappstream-glib/as-store.c')
-rw-r--r--libappstream-glib/as-store.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libappstream-glib/as-store.c b/libappstream-glib/as-store.c
index e435340..3e6502a 100644
--- a/libappstream-glib/as-store.c
+++ b/libappstream-glib/as-store.c
@@ -2561,7 +2561,7 @@ as_store_to_file (AsStore *store,
if (!g_file_replace_contents (file, xml->str, xml->len,
NULL,
FALSE,
- G_FILE_CREATE_NONE,
+ G_FILE_CREATE_REPLACE_DESTINATION,
NULL,
cancellable,
&error_local)) {