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=c135a2c414e5cada7785d13c6784a19575a8b1db commit c135a2c414e5cada7785d13c6784a19575a8b1db Author: Guillem Jover <[email protected]> AuthorDate: Wed Jan 10 02:56:59 2024 +0100 debian: Make the logdir variable local to its function in postrm --- debian/dpkg.postrm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/dpkg.postrm b/debian/dpkg.postrm index 4d2acf472..72c4ed380 100644 --- a/debian/dpkg.postrm +++ b/debian/dpkg.postrm @@ -5,7 +5,7 @@ set -e # Remove log file when dpkg is purged remove_logfile() { - logdir=$DPKG_ROOT/var/log + local logdir="$DPKG_ROOT/var/log" rm -f "$logdir"/dpkg.log "$logdir"/dpkg.log.* 2>/dev/null rm -f "$logdir"/alternatives.log "$logdir"/alternatives.log.* 2>/dev/null -- Dpkg.Org's dpkg

