core: Fix ostree-pull to be able to look up remotes in parent repo
We should probably add a generalized inheritance mechanism.
This commit is contained in:
1 parent
f33a2f9a08
commit
a04ef7ba10
3 files changed
+59
-3
No files matched your search
@@ -781,6 +781,22 @@ ostree_repo_get_mode (OstreeRepo *self)
|
||||
return priv->mode;
|
||||
}
|
||||
|
||||
/**
|
||||
* ostree_repo_get_parent:
|
||||
* @self:
|
||||
*
|
||||
* Before this function can be used, ostree_repo_init() must have been
|
||||
* called.
|
||||
*
|
||||
* Returns: (transfer none): Parent repository, or %NULL if none
|
||||
*/
|
||||
OstreeRepo *
|
||||
ostree_repo_get_parent (OstreeRepo *self)
|
||||
{
|
||||
OstreeRepoPrivate *priv = GET_PRIVATE (self);
|
||||
return priv->parent_repo;
|
||||
}
|
||||
|
||||
GFile *
|
||||
ostree_repo_get_file_object_path (OstreeRepo *self,
|
||||
const char *checksum)
|
||||
|
||||
@@ -69,6 +69,8 @@ GKeyFile * ostree_repo_get_config (OstreeRepo *self);
|
||||
|
||||
GKeyFile * ostree_repo_copy_config (OstreeRepo *self);
|
||||
|
||||
OstreeRepo * ostree_repo_get_parent (OstreeRepo *self);
|
||||
|
||||
gboolean ostree_repo_write_config (OstreeRepo *self,
|
||||
GKeyFile *new_config,
|
||||
GError **error);
|
||||
|
||||
Reference in new issue
Block a user