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=e1dc1a2bea776be6d02aef92dbc3b21ba422c077 commit e1dc1a2bea776be6d02aef92dbc3b21ba422c077 Author: Guillem Jover <guil...@debian.org> AuthorDate: Thu May 22 10:44:19 2025 +0200 Disable intentional or false-positive shellcheck checks Changelog: internal Warned-by: shellcheck --- debian/tests/test-not-root | 1 + debian/tests/test-root | 1 + tests/t-maintscript-leak/pkg-maintscript-leak/DEBIAN/postinst | 1 + tests/t-maintscript-leak/pkg-maintscript-leak/DEBIAN/postrm | 1 + tests/t-maintscript-leak/pkg-maintscript-leak/DEBIAN/preinst | 1 + tests/t-maintscript-leak/pkg-maintscript-leak/DEBIAN/prerm | 1 + 6 files changed, 6 insertions(+) diff --git a/debian/tests/test-not-root b/debian/tests/test-not-root index e818098c7..85b639a05 100644 --- a/debian/tests/test-not-root +++ b/debian/tests/test-not-root @@ -10,6 +10,7 @@ fi srcdir="$(pwd)" cd "$AUTOPKGTEST_TMP" +# shellcheck disable=SC2016 # configure needs to expand exec_prefix. "$srcdir/configure" \ --disable-nls \ --disable-dselect \ diff --git a/debian/tests/test-root b/debian/tests/test-root index 745a5d3be..b7a396528 100644 --- a/debian/tests/test-root +++ b/debian/tests/test-root @@ -10,6 +10,7 @@ fi srcdir="$(pwd)" cd "$AUTOPKGTEST_TMP" +# shellcheck disable=SC2016 # configure needs to expand exec_prefix. "$srcdir/configure" \ --disable-nls \ --disable-dselect \ diff --git a/tests/t-maintscript-leak/pkg-maintscript-leak/DEBIAN/postinst b/tests/t-maintscript-leak/pkg-maintscript-leak/DEBIAN/postinst index 2508454c2..79e058f72 100755 --- a/tests/t-maintscript-leak/pkg-maintscript-leak/DEBIAN/postinst +++ b/tests/t-maintscript-leak/pkg-maintscript-leak/DEBIAN/postinst @@ -12,5 +12,6 @@ done if [ -n "$fddir" ]; then ls -l "$fddir" # We should have the 3 standard descriptors, plus 1 for the open directory. + # shellcheck disable=SC2012,SC2046 [ $(ls "$fddir" | wc -l) -eq 4 ] || echo WARN: maintscript leaks fd fi diff --git a/tests/t-maintscript-leak/pkg-maintscript-leak/DEBIAN/postrm b/tests/t-maintscript-leak/pkg-maintscript-leak/DEBIAN/postrm index 2508454c2..79e058f72 100755 --- a/tests/t-maintscript-leak/pkg-maintscript-leak/DEBIAN/postrm +++ b/tests/t-maintscript-leak/pkg-maintscript-leak/DEBIAN/postrm @@ -12,5 +12,6 @@ done if [ -n "$fddir" ]; then ls -l "$fddir" # We should have the 3 standard descriptors, plus 1 for the open directory. + # shellcheck disable=SC2012,SC2046 [ $(ls "$fddir" | wc -l) -eq 4 ] || echo WARN: maintscript leaks fd fi diff --git a/tests/t-maintscript-leak/pkg-maintscript-leak/DEBIAN/preinst b/tests/t-maintscript-leak/pkg-maintscript-leak/DEBIAN/preinst index 2508454c2..79e058f72 100755 --- a/tests/t-maintscript-leak/pkg-maintscript-leak/DEBIAN/preinst +++ b/tests/t-maintscript-leak/pkg-maintscript-leak/DEBIAN/preinst @@ -12,5 +12,6 @@ done if [ -n "$fddir" ]; then ls -l "$fddir" # We should have the 3 standard descriptors, plus 1 for the open directory. + # shellcheck disable=SC2012,SC2046 [ $(ls "$fddir" | wc -l) -eq 4 ] || echo WARN: maintscript leaks fd fi diff --git a/tests/t-maintscript-leak/pkg-maintscript-leak/DEBIAN/prerm b/tests/t-maintscript-leak/pkg-maintscript-leak/DEBIAN/prerm index 2508454c2..79e058f72 100755 --- a/tests/t-maintscript-leak/pkg-maintscript-leak/DEBIAN/prerm +++ b/tests/t-maintscript-leak/pkg-maintscript-leak/DEBIAN/prerm @@ -12,5 +12,6 @@ done if [ -n "$fddir" ]; then ls -l "$fddir" # We should have the 3 standard descriptors, plus 1 for the open directory. + # shellcheck disable=SC2012,SC2046 [ $(ls "$fddir" | wc -l) -eq 4 ] || echo WARN: maintscript leaks fd fi -- Dpkg.Org's dpkg