Skip to content

Commit

Permalink
app/status: Strengthen deployment printing
Browse files Browse the repository at this point in the history
Allow `out_printed_cached_update` and `sysroot_proxy` to be `NULL`. This
will be the case for the history feature, which will reuse the same code
for printing.

Closes: #1823
Approved by: mike-nguyen
  • Loading branch information
jlebon authored and rh-atomic-bot committed May 1, 2019
1 parent 41673e9 commit 0aded8a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/app/rpmostree-builtin-status.c
Original file line number Diff line number Diff line change
Expand Up @@ -690,9 +690,10 @@ print_one_deployment (RPMOSTreeSysroot *sysroot_proxy,
if (!rpmostree_print_diff_advisories (rpm_diff, advisories, opt_verbose,
opt_verbose_advisories, max_key_len, error))
return FALSE;
*out_printed_cached_update = TRUE;
if (out_printed_cached_update)
*out_printed_cached_update= TRUE;
}
else if (is_pending_deployment)
else if (is_pending_deployment && sysroot_proxy)
{
/* No cached update, but we can still print a diff summary */
const char *sysroot_path = rpmostree_sysroot_get_path (sysroot_proxy);
Expand Down

0 comments on commit 0aded8a

Please sign in to comment.