mirror of
https://github.com/flatpak/flatpak.git
synced 2026-02-02 03:51:28 -05:00
When updating from partial install, disable static deltas
The delta can contain references to files in the parent which don't exist locally, which breaks. Closes: #1126 Approved by: alexlarsson
This commit is contained in:
committed by
Atomic Bot
parent
893c53d8e7
commit
edfd6eae83
@@ -6410,6 +6410,12 @@ flatpak_dir_update (FlatpakDir *self,
|
||||
system_helper = flatpak_dir_get_system_helper (self);
|
||||
g_assert (system_helper != NULL);
|
||||
|
||||
/* If the existing pull is partial, disable static deltas. They can
|
||||
break, because ostree doesn't look at the parent repo for
|
||||
commitpartial state. */
|
||||
if (old_subpaths && old_subpaths[0] != NULL)
|
||||
flatpak_flags |= FLATPAK_PULL_FLAGS_NO_STATIC_DELTAS;
|
||||
|
||||
if (!flatpak_dir_ensure_repo (self, cancellable, error))
|
||||
return FALSE;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user