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
This commit is contained in:
Buddelmann, Richard RB 2021-09-08 08:41:05 +02:00
parent 55a7e74fee
commit 744bf94369
1 changed files with 1 additions and 1 deletions

View File

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