[ostree] core: Replace pack superindex via rename() rather than truncating
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] core: Replace pack superindex via rename() rather than truncating
- Date: Mon, 14 May 2012 15:34:05 +0000 (UTC)
commit 102180c5f25906ad555ab0fa44a718abcda863be
Author: Colin Walters <walters verbum org>
Date: Mon May 14 10:21:05 2012 -0400
core: Replace pack superindex via rename() rather than truncating
This helps allow cloning repositories via "cp -al".
src/libotutil/ot-variant-utils.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/libotutil/ot-variant-utils.c b/src/libotutil/ot-variant-utils.c
index b9b8504..513776e 100644
--- a/src/libotutil/ot-variant-utils.c
+++ b/src/libotutil/ot-variant-utils.c
@@ -69,7 +69,8 @@ ot_util_variant_save (GFile *dest,
ot_lobj GOutputStream *out = NULL;
gsize bytes_written;
- out = (GOutputStream*)g_file_replace (dest, NULL, 0, FALSE, cancellable, error);
+ out = (GOutputStream*)g_file_replace (dest, NULL, G_FILE_CREATE_REPLACE_DESTINATION, FALSE,
+ cancellable, error);
if (!out)
goto out;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]