mirror of
https://github.com/ostreedev/ostree.git
synced 2024-12-22 17:35:55 +03:00
repo: (cleanup) Use _is_system() rather than inlining it
No reason to duplicate the code.
This commit is contained in:
parent
fa6e7b4b01
commit
8067e977a7
@ -1236,15 +1236,11 @@ ostree_repo_open (OstreeRepo *self,
|
||||
ostree_repo_set_disable_fsync (self, TRUE);
|
||||
}
|
||||
|
||||
{
|
||||
gs_unref_object GFile *default_repo_path = get_default_repo_path ();
|
||||
|
||||
if (g_file_equal (self->repodir, default_repo_path))
|
||||
{
|
||||
if (!append_remotes_d (self, cancellable, error))
|
||||
goto out;
|
||||
}
|
||||
}
|
||||
if (ostree_repo_is_system (self))
|
||||
{
|
||||
if (!append_remotes_d (self, cancellable, error))
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (!gs_file_open_dir_fd (self->tmp_dir, &self->tmp_dir_fd, cancellable, error))
|
||||
goto out;
|
||||
|
Loading…
Reference in New Issue
Block a user