This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch main
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=5d8b343237767391f451d32b5eea0160506305ed

commit 5d8b343237767391f451d32b5eea0160506305ed
Author: Guillem Jover <[email protected]>
AuthorDate: Fri Dec 6 01:54:26 2024 +0100

    src/sh: Add a default PROGNAME to dpkg-error.sh
    
    We require a program name for the various functions to work correctly.
    Make sure we have something available at all times.
---
 src/sh/dpkg-error.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/sh/dpkg-error.sh b/src/sh/dpkg-error.sh
index b7f968e03..a67cb3d69 100644
--- a/src/sh/dpkg-error.sh
+++ b/src/sh/dpkg-error.sh
@@ -17,6 +17,9 @@
 #
 # shellcheck shell=sh
 
+# Set a default program name.
+: "${PROGNAME:=$(basename "$0")}"
+
 # Standard ANSI colors and attributes.
 COLOR_NORMAL=''
 COLOR_RESET=''

-- 
Dpkg.Org's dpkg

Reply via email to