]> git.ipfire.org Git - thirdparty/elfutils.git/commit
debuginfod-client.c: Skip negative cache entry for cancelled downloads
authorAaron Merey <amerey@redhat.com>
Sun, 10 Aug 2025 19:25:17 +0000 (15:25 -0400)
committerAaron Merey <amerey@redhat.com>
Mon, 11 Aug 2025 15:54:42 +0000 (11:54 -0400)
commit2e2779857e56151d6bcca4e5cbe088ba0fcfd471
tree60c72d2889f7af8180107781e0e7739913fdb2d5
parentaafb8adf00e7df3cc1af97d139f1a85f6d3b074e
debuginfod-client.c: Skip negative cache entry for cancelled downloads

The debuginfod client cache uses empty files to indicate that a download
was unsuccessful and should not be attempted again.

Commit 5527216460c61 skips the creation of empty files when a downloaded
is cancelled by the user.  This works by setting
client->progressfn_cancel to true when progressfn returns a non-zero value.

Commit d47d93b1049ec appears to have accidentally removed this setting of
client->progressfn_cancel.

Restore setting client->progressfn_cancel to true when progressfn
returns a non-zero value.  Also set client->progressfn_cancel to false
at the beginning of debuginfod_find_metadata to avoid previous
cancellations affecting the current metadata query.

Signed-off-by: Aaron Merey <amerey@redhat.com>
debuginfod/debuginfod-client.c