From e4f13e62cf74393e811dd247a28b887935ce6a56 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Sun, 8 Oct 2017 23:34:48 +1000 Subject: libmakepkg: only output package file names when checking for build references The leading directory is distraction from identifying the files containing build references. Signed-off-by: Allan McRae --- scripts/libmakepkg/lint_package/build_references.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/libmakepkg/lint_package/build_references.sh.in b/scripts/libmakepkg/lint_package/build_references.sh.in index 9183fce9..6b777bf1 100644 --- a/scripts/libmakepkg/lint_package/build_references.sh.in +++ b/scripts/libmakepkg/lint_package/build_references.sh.in @@ -34,7 +34,7 @@ warn_build_references() { mapfile -t refs < <(find "$pkgdir" -type f -exec grep -l "${!var}" {} +) if (( ${#refs} > 0 )); then warning "$(gettext 'Package contains reference to %s')" "\$$var" - printf '%s\n' "${refs[@]}" >&2 + printf '%s\n' "${refs[@]#"$pkgdir/"}" >&2 fi done return 0 -- cgit v1.2.3-70-g09d2