summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2017-10-08 23:34:48 +1000
committerAllan McRae <allan@archlinux.org>2017-10-17 20:31:06 +1000
commite4f13e62cf74393e811dd247a28b887935ce6a56 (patch)
treedb1eac915e1f94e6d24c7e718f0df1719c7428d5 /scripts
parent62bfba53dbb33d12f3a4beaf9044a04b40c6b537 (diff)
downloadpacman-e4f13e62cf74393e811dd247a28b887935ce6a56.tar.xz
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 <allan@archlinux.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/libmakepkg/lint_package/build_references.sh.in2
1 files changed, 1 insertions, 1 deletions
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