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:
Jonathan Lebon 2019-02-27 21:46:25 -05:00 committed by Atomic Bot
parent ed3294fa98
commit cc1ac0eabe

View File

@ -931,6 +931,9 @@ prep_local_assembly (RpmOstreeSysrootUpgrader *self,
return FALSE;
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, ".");
if (!prepare_context_for_assembly (self, tmprootfs_abspath, cancellable, error))