aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2023-06-09 15:32:15 -0400
committerB. Watson <urchlay@slackware.uk>2023-06-09 15:32:15 -0400
commit15989c6956565eff5b0e8592ee247c09e2120ee1 (patch)
tree9b927fd23c5918f66ce107fe239e8fab8b48487d
parent1f3942d90c4a02a1664fee1d72f9f2e2de527f75 (diff)
downloadsbo-maintainer-tools-15989c6956565eff5b0e8592ee247c09e2120ee1.tar.gz
sbopkglint: only check for $TMP/package-*, eliminates a lot of false positives.
-rw-r--r--sbopkglint.d/70-tmp_path.t.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/sbopkglint.d/70-tmp_path.t.sh b/sbopkglint.d/70-tmp_path.t.sh
index 4bf9218..933cf77 100644
--- a/sbopkglint.d/70-tmp_path.t.sh
+++ b/sbopkglint.d/70-tmp_path.t.sh
@@ -6,13 +6,13 @@
# directory is the root of the installed package tree.
#######################################################################
-# checks for /tmp/SBo (or the environment TMP) hardcoded in files.
-# don't check the SlackBuild in the doc dir, since it's guaranteed to match.
-# also don't check kernel modules (they include the full path to the source,
-# for debug messages).
+# checks for $TMP/package-* hardcoded in files. uses the environment
+# TMP, defaults to /tmp/SBo. this means that if you set TMP when
+# building the package, you have to set it to the same thing for this
+# check to work properly. If you don't ever set it, it'll be fine.
-found="$(find . -type f | grep -v '^\./usr/doc/.*\.SlackBuild$' | grep -v '^\./lib/modules/' | xargs fgrep -l "$TMP")"
+found="$(find . -type f | xargs fgrep -l "$TMP/package-")"
if [ -n "$found" ]; then
- warn "found files with TMP ($TMP) baked in:"
+ warn "found files with TMP ($TMP/package-*) baked in:"
echo "$found" 1>&2
fi