]> git.ipfire.org Git - thirdparty/elfutils.git/commit
debuginfod-find: Restore DEBUGINFOD_PROGRESS behaviour
authorAaron Merey <amerey@redhat.com>
Wed, 11 Mar 2026 14:13:54 +0000 (10:13 -0400)
committerAaron Merey <amerey@redhat.com>
Fri, 13 Mar 2026 22:10:09 +0000 (18:10 -0400)
commit53c036dff0e329fc75fd3f051e423db510e2a017
treeb096774e470de70997ea7e5c147729b921024e74
parent10fb2a16f972b21bc07e2adcfb3aebb9ee4f1360
debuginfod-find: Restore DEBUGINFOD_PROGRESS behaviour

Commit d7cb72f7 changed debuginfod-find to always set a progress
callback function in order to handle interrupts during downloading.

Previously debuginfod-find set a progressfn only when the -v command
line option was given.  If the DEBUGINFOD_PROGRESS environment variable
is set, libdebuginfod automatically sets a default progressfn as long as
no other progressfn has been set using debuginfod_set_progressfn.

Commit d7cb72f7 therefore resulted in DEBUGINFOD_PROGRESS no longer
affecting debuginfod-find when invoked without -v.

This patch restores the old behaviour: when DEBUGINFOD_PROGRESS is set
and -v is not given, the default progressfn will trigger during
downloading.

Signed-off-by: Aaron Merey <amerey@redhat.com>
debuginfod/debuginfod-find.c
tests/run-debuginfod-artifact-running.sh