From: Buddelmann, Richard RB Date: Wed, 8 Sep 2021 06:41:05 +0000 (+0200) Subject: repo-pull: legacy_transaction_resuming flag ignored X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~4^2~2^2~2^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=744bf943691495aee91d4ce73db6a3ace95cc8c7;p=ostree.git repo-pull: legacy_transaction_resuming flag ignored for deltafiles the legacy_transaction_resuming flag is not used, which will mark the commit as done, even if files are missing. using already existing commitstate_is_partial function as fix --- diff --git a/src/libostree/ostree-repo-pull.c b/src/libostree/ostree-repo-pull.c index 12409e63..388f782b 100644 --- a/src/libostree/ostree-repo-pull.c +++ b/src/libostree/ostree-repo-pull.c @@ -2439,7 +2439,7 @@ get_best_static_delta_start_for (OtPullData *pull_data, if (!ostree_repo_load_commit (pull_data->repo, to_revision, NULL, &to_rev_state, error)) return FALSE; - if (!(to_rev_state & OSTREE_REPO_COMMIT_STATE_PARTIAL)) + if (!(commitstate_is_partial(pull_data, to_rev_state))) { /* We already have this commit, we're done! */ out_result->result = DELTA_SEARCH_RESULT_UNCHANGED;