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=46ad0662e5e99ab9da1f28fd08ea9443b6343088 commit 46ad0662e5e99ab9da1f28fd08ea9443b6343088 Author: Guillem Jover <guil...@debian.org> AuthorDate: Sun Aug 22 13:32:07 2021 +0200 test: Mark external sourced shell files for checking New shellcheck versions emit an error for sourced files that cannot be found. Enable their parsing, and refer the sourced points to the current files in the source tree. Warned-by: shellcheck --- scripts/dpkg-maintscript-helper.sh | 1 + scripts/dpkg-realpath.sh | 1 + t/shellcheck.t | 1 + 3 files changed, 3 insertions(+) diff --git a/scripts/dpkg-maintscript-helper.sh b/scripts/dpkg-maintscript-helper.sh index 98067ceaa..7c854e88a 100755 --- a/scripts/dpkg-maintscript-helper.sh +++ b/scripts/dpkg-maintscript-helper.sh @@ -603,6 +603,7 @@ export DPKG_ROOT PKGDATADIR_DEFAULT=scripts PKGDATADIR="${DPKG_DATADIR:-$PKGDATADIR_DEFAULT}" +# shellcheck source=scripts/sh/dpkg-error.sh . "$PKGDATADIR/sh/dpkg-error.sh" setup_colors diff --git a/scripts/dpkg-realpath.sh b/scripts/dpkg-realpath.sh index bb7861038..3843644bc 100755 --- a/scripts/dpkg-realpath.sh +++ b/scripts/dpkg-realpath.sh @@ -25,6 +25,7 @@ EOL="\n" PKGDATADIR_DEFAULT=scripts PKGDATADIR="${DPKG_DATADIR:-$PKGDATADIR_DEFAULT}" +# shellcheck source=scripts/sh/dpkg-error.sh . "$PKGDATADIR/sh/dpkg-error.sh" show_version() diff --git a/t/shellcheck.t b/t/shellcheck.t index 6872ea95d..0b60cd01f 100644 --- a/t/shellcheck.t +++ b/t/shellcheck.t @@ -41,6 +41,7 @@ my @files = qw( scripts/dpkg-realpath.sh ); my @shellcheck_opts = ( + '--external-sources', # Allow checking external source files. '--exclude=SC1090', # Allow non-constant source. '--exclude=SC2039', # Allow local keyword. '--exclude=SC2166', # Allow -a and -o. -- Dpkg.Org's dpkg