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
This commit is contained in:
Alexander Larsson 2017-06-19 11:06:30 +02:00 committed by Atomic Bot
parent fb2c3c1db3
commit 07dc33ca4a

View File

@ -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))