diff options
author | Jasper St. Pierre <jstpierre@mecheye.net> | 2013-09-05 13:41:46 -0400 |
---|---|---|
committer | Jasper St. Pierre <jstpierre@mecheye.net> | 2013-09-05 14:07:03 -0400 |
commit | 02adfc8c03e414e47093e28be814348b00af74b8 (patch) | |
tree | ef67bca6ee3b3118cfeea16fc676b015846eb281 /src/ostree/ot-builtin-pull-local.c | |
parent | 57d285f6194c6d9bbaa45b5f253a1d698ef4ea2e (diff) | |
download | ostree-02adfc8c03e414e47093e28be814348b00af74b8.tar.gz |
repo: Rename ostree_repo_check to ostree_repo_open
As it more clearly describes what the function does: load the
repo from disk and initialize it.
At the same time, add a cancellable parameter.
https://bugzilla.gnome.org/show_bug.cgi?id=707582
Diffstat (limited to 'src/ostree/ot-builtin-pull-local.c')
-rw-r--r-- | src/ostree/ot-builtin-pull-local.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ostree/ot-builtin-pull-local.c b/src/ostree/ot-builtin-pull-local.c index 24065945..090b9b5b 100644 --- a/src/ostree/ot-builtin-pull-local.c +++ b/src/ostree/ot-builtin-pull-local.c @@ -192,7 +192,7 @@ ostree_builtin_pull_local (int argc, char **argv, OstreeRepo *repo, GCancellable src_f = g_file_new_for_path (src_repo_path); data->src_repo = ostree_repo_new (src_f); - if (!ostree_repo_check (data->src_repo, error)) + if (!ostree_repo_open (data->src_repo, cancellable, error)) goto out; data->threadpool = ot_thread_pool_new_nproc (import_one_object_thread, data); |