upgrader: Add missing check for error
Not that it matters much since that function can't fail right now (though it does have a precondition check). But this just matches what we do elsewhere and prepares us in the event the function becomes fallible. Closes: #1783 Approved by: cgwalters
This commit is contained in:
parent
ed3294fa98
commit
cc1ac0eabe
@ -931,6 +931,9 @@ prep_local_assembly (RpmOstreeSysrootUpgrader *self,
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
self->ctx = rpmostree_context_new_system (self->repo, cancellable, error);
|
self->ctx = rpmostree_context_new_system (self->repo, cancellable, error);
|
||||||
|
if (!self->ctx)
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
g_autofree char *tmprootfs_abspath = glnx_fdrel_abspath (self->tmprootfs_dfd, ".");
|
g_autofree char *tmprootfs_abspath = glnx_fdrel_abspath (self->tmprootfs_dfd, ".");
|
||||||
|
|
||||||
if (!prepare_context_for_assembly (self, tmprootfs_abspath, cancellable, error))
|
if (!prepare_context_for_assembly (self, tmprootfs_abspath, cancellable, error))
|
||||||
|
Loading…
Reference in New Issue
Block a user