[ostree] admin install: Ensure /ostree is initialized first



commit 13aefbc096b1d15d6abb73ae64e274441203581c
Author: Colin Walters <walters verbum org>
Date:   Fri Jan 18 08:38:09 2013 -0500

    admin install: Ensure /ostree is initialized first
    
    https://bugzilla.gnome.org/show_bug.cgi?id=692008

 src/ostree/ot-admin-builtin-install.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/ostree/ot-admin-builtin-install.c b/src/ostree/ot-admin-builtin-install.c
index 5ec8ff7..23ff6ad 100644
--- a/src/ostree/ot-admin-builtin-install.c
+++ b/src/ostree/ot-admin-builtin-install.c
@@ -96,6 +96,9 @@ ot_admin_builtin_install (int argc, char **argv, OtAdminBuiltinOpts *admin_opts,
       goto out;
     }
 
+  if (!ot_admin_ensure_initialized (admin_opts->ostree_dir, cancellable, error))
+    goto out;
+
   self->loop = g_main_loop_new (NULL, TRUE);
 
   keyfile_arg = argv[1];



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