[ostree] init: Add new explicit temporary directory



commit eb288bab9d2de50c28e1af90edd01ee9eae516ba
Author: Colin Walters <walters verbum org>
Date:   Tue Nov 8 18:13:05 2011 -0500

    init: Add new explicit temporary directory
    
    This will be used to store all tempoary files.

 ostree/ot-builtin-init.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/ostree/ot-builtin-init.c b/ostree/ot-builtin-init.c
index 1e85801..816798d 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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]