[ostree/wip/ostbuild-v3: 10/10] ostadmin: Update for new trees/ location of trees
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree/wip/ostbuild-v3: 10/10] ostadmin: Update for new trees/ location of trees
- Date: Tue, 15 May 2012 02:00:22 +0000 (UTC)
commit 77327d07315b4706b2f6575f66fde17b811938d2
Author: Colin Walters <walters verbum org>
Date: Mon May 14 09:29:38 2012 -0400
ostadmin: Update for new trees/ location of trees
src/ostadmin/ot-admin-builtin-deploy.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/ostadmin/ot-admin-builtin-deploy.c b/src/ostadmin/ot-admin-builtin-deploy.c
index 4a64c97..64549e4 100644
--- a/src/ostadmin/ot-admin-builtin-deploy.c
+++ b/src/ostadmin/ot-admin-builtin-deploy.c
@@ -314,11 +314,14 @@ ot_admin_builtin_deploy (int argc, char **argv, GError **error)
for (i = 2; i < argc; i++)
{
const char *deploy_target = argv[i];
+ ot_lfree char *tree_ref = NULL;
ot_lptrarray GPtrArray *checkout_args = NULL;
+ tree_ref = g_strconcat ("trees/", deploy_target, NULL);
+
checkout_args = g_ptr_array_new ();
ot_ptrarray_add_many (checkout_args, "ostree", "--repo=/ostree/repo",
- "checkout", "--atomic-retarget", deploy_target, NULL);
+ "checkout", "--atomic-retarget", tree_ref, deploy_target, NULL);
g_ptr_array_add (checkout_args, NULL);
if (!ot_spawn_sync_checked ("/ostree", (char**)checkout_args->pdata, NULL, G_SPAWN_SEARCH_PATH,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]