From eb288bab9d2de50c28e1af90edd01ee9eae516ba Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Tue, 8 Nov 2011 18:13:05 -0500 Subject: [PATCH] init: Add new explicit temporary directory This will be used to store all tempoary files. --- ostree/ot-builtin-init.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ostree/ot-builtin-init.c b/ostree/ot-builtin-init.c index 1e858013..816798d2 100644 --- a/ostree/ot-builtin-init.c +++ b/ostree/ot-builtin-init.c @@ -72,6 +72,11 @@ ostree_builtin_init (int argc, char **argv, const char *repo_path, GError **erro goto out; g_clear_object (&child); + child = g_file_get_child (repodir, "tmp"); + if (!g_file_make_directory (child, NULL, error)) + goto out; + g_clear_object (&child); + child = g_file_get_child (repodir, "refs"); if (!g_file_make_directory (child, NULL, error)) goto out;