init: Add new explicit temporary directory

This will be used to store all tempoary files.
This commit is contained in:
Colin Walters 2011-11-08 18:13:05 -05:00
parent 2be1407622
commit eb288bab9d
1 changed files with 5 additions and 0 deletions

View File

@ -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;