From 07dc33ca4a3f2a815143ddab09eb9a7980716c87 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Mon, 19 Jun 2017 11:06:30 +0200 Subject: [PATCH] static delta apply: Work on bare-user-only repos Flatpak make check is failing when applying a static delta to a bare-user-only repo due to an assert. The fix is to add bare-user-only to the assert check. Closes: #940 Approved by: giuseppe --- src/libostree/ostree-repo-static-delta-processing.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libostree/ostree-repo-static-delta-processing.c b/src/libostree/ostree-repo-static-delta-processing.c index 2280dec9..ea157e77 100644 --- a/src/libostree/ostree-repo-static-delta-processing.c +++ b/src/libostree/ostree-repo-static-delta-processing.c @@ -690,7 +690,8 @@ dispatch_open (OstreeRepo *repo, if (!state->stats_only) { g_assert (repo->mode == OSTREE_REPO_MODE_BARE || - repo->mode == OSTREE_REPO_MODE_BARE_USER); + repo->mode == OSTREE_REPO_MODE_BARE_USER || + repo->mode == OSTREE_REPO_MODE_BARE_USER_ONLY); } if (!open_output_target (state, cancellable, error))