From: Aaron Merey Date: Fri, 10 May 2024 15:24:05 +0000 (-0400) Subject: debuginfod: PR28204 config/profile.fish.in X-Git-Tag: elfutils-0.192~92 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b3fcfe2c854808191aedc0b10cfd7162142c2c95;p=thirdparty%2Felfutils.git debuginfod: PR28204 config/profile.fish.in Extend config/profile.fish.in for DEBUGINFOD_IMA_CERT_PATH. Signed-off-by: --- diff --git a/config/profile.fish.in b/config/profile.fish.in index c0a234db..12b5e6f1 100644 --- a/config/profile.fish.in +++ b/config/profile.fish.in @@ -4,12 +4,21 @@ # See also [man debuginfod-client-config] for other environment variables # such as $DEBUGINFOD_MAXSIZE, $DEBUGINFOD_MAXTIME, $DEBUGINFOD_PROGRESS. +# Use local variables so we don't need to manually unset them +set --local prefix "@prefix@" + if not set --query DEBUGINFOD_URLS - # Use local variables so we don't need to manually unset them - set --local prefix "@prefix@" set --local files "@sysconfdir@/debuginfod/"*.urls set --local DEBUGINFOD_URLS (cat /dev/null $files 2>/dev/null | string replace '\n' ' ') if test -n "$DEBUGINFOD_URLS" set --global --export DEBUGINFOD_URLS "$DEBUGINFOD_URLS" end end + +if not set --query DEBUGINFOD_IMA_CERT_PATH + set --local files "@sysconfdir@/debuginfod/"*.certpath + set --local DEBUGINFOD_IMA_CERT_PATH (cat /dev/null $files 2>/dev/null | string replace '\n' ':') + if test -n "$DEBUGINFOD_IMA_CERT_PATH" + set --global --export DEBUGINFOD_IMA_CERT_PATH "$DEBUGINFOD_IMA_CERT_PATH" + end +end