rpm: automatically turn fsync off when using mkdtemp dirs.

This commit is contained in:
James Antill 2014-07-21 00:55:39 -04:00
parent c547c8a3f6
commit a7e86812f2

View File

@ -930,6 +930,7 @@ rpmostree_builtin_rpm (int argc,
gs_free char *tmpd = g_mkdtemp (g_strdup ("/tmp/rpm-ostree.XXXXXX"));
rpmdbdir = g_file_new_for_path (tmpd);
rpmdbdir_is_tmp = TRUE;
ostree_repo_set_disable_fsync (repo, TRUE);
}
if (FALSE) {}