core: Ensure we delete duplicate files in a transaction

If multiple files have the same hash, we need to ensure we're not
overwriting other tempfiles in the same transaction.  Instead
just delete them, since we know they're in the repo.
This commit is contained in:
Colin Walters committed 2012-01-15 12:25:52 -05:00
1 parent 9910c0ddf4
commit ebe35dbefe
2 files changed
+45 -11

No files matched your search

+1 -1
View File
@@ -887,7 +887,7 @@ ostree_create_temp_file_from_input (GFile *dir,
g_free (possible_name);
possible_name = subst_xxxxxx (tmp_name->str);
g_clear_object (&possible_file);
possible_file = ot_gfile_new_for_path (possible_name);
possible_file = g_file_get_child (dir, possible_name);
if (!ostree_create_file_from_input (possible_file, finfo, xattrs, input,
objtype,