]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
debuginfod: PR28204 config/profile.fish.in
authorAaron Merey <amerey@redhat.com>
Fri, 10 May 2024 15:24:05 +0000 (11:24 -0400)
committerFrank Ch. Eigler <fche@redhat.com>
Fri, 10 May 2024 16:18:24 +0000 (12:18 -0400)
Extend config/profile.fish.in for DEBUGINFOD_IMA_CERT_PATH.

Signed-off-by: <Aaron Merey <amerey@redhat.com>
config/profile.fish.in

index c0a234dbea7773a0a5755a877de4950d7610dc5d..12b5e6f1cac20dc93b95ba6f3430efba5d7856db 100644 (file)
@@ -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