sysroot: Cache an OstreeRepo instance
Rather than returning a new OstreeRepo instance in each call to ostree_sysroot_get_repo(), cache one internally so the same instance is returned each time.
This commit is contained in:
1 parent
6a7b9defb8
commit
a6bbcf2ba7
2 files changed
+14
-6
No files matched your search
@@ -40,6 +40,9 @@ struct OstreeSysroot {
|
||||
int bootversion;
|
||||
int subbootversion;
|
||||
OstreeDeployment *booted_deployment;
|
||||
|
||||
/* Only access through ostree_sysroot_get_repo() */
|
||||
OstreeRepo *repo;
|
||||
};
|
||||
|
||||
gboolean
|
||||
|
||||
Reference in new issue
Block a user