sysroot: Pass the internal repo a system root path
authorMatthew Barnes <mbarnes@redhat.com>
Mon, 13 Jul 2015 21:15:03 +0000 (17:15 -0400)
committerMatthew Barnes <mbarnes@redhat.com>
Thu, 16 Jul 2015 16:49:11 +0000 (12:49 -0400)
src/libostree/ostree-sysroot.c

index d5d48ad8b6296936059f63146800cbcb3b232ea2..c7b3e474fa8e9b241f0ebb9a2e657643cd086920 100644 (file)
@@ -127,7 +127,7 @@ ostree_sysroot_constructed (GObject *object)
     self->path = g_object_ref (_ostree_get_default_sysroot_path ());
 
   repo_path = g_file_resolve_relative_path (self->path, "ostree/repo");
-  self->repo = ostree_repo_new (repo_path);
+  self->repo = ostree_repo_new_for_sysroot_path (repo_path, self->path);
 
   G_OBJECT_CLASS (ostree_sysroot_parent_class)->constructed (object);
 }