static delta apply: Work on bare-user-only repos
authorAlexander Larsson <alexl@redhat.com>
Mon, 19 Jun 2017 09:06:30 +0000 (11:06 +0200)
committerAtomic Bot <atomic-devel@projectatomic.io>
Mon, 19 Jun 2017 09:09:17 +0000 (09:09 +0000)
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

index 2280dec9445d78bc3871e5fbe64f13d1b732c9b0..ea157e774c8b456e624c247482e93c1ab2eb6f12 100644 (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))