aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-04-02 18:30:31 -0400
committerB. Watson <urchlay@slackware.uk>2024-04-02 18:30:31 -0400
commitadce112d7e2f5d79f07f9ac9f9abaeee19778d07 (patch)
tree069af39759dfad5a483054fa7889abcbeec3833d
parentaaae2a487399cbb1220abe4a739534df79e65653 (diff)
downloadsbo-maintainer-tools-adce112d7e2f5d79f07f9ac9f9abaeee19778d07.tar.gz
sbolint: tighten "outdated ARCH" check (network/rtl8812bu was falsely failing).
-rwxr-xr-xsbolint4
1 files changed, 3 insertions, 1 deletions
diff --git a/sbolint b/sbolint
index e08703f..6a021e0 100755
--- a/sbolint
+++ b/sbolint
@@ -1490,7 +1490,9 @@ sub check_script {
$arch_lineno = $lineno;
}
- if(/^[^#]*\bARCH=['"]?i[34]86/) {
+ # 20240402 bkw: we have a few scripts that do things like "ARCH=i386 make",
+ # this line should only detect bare assignments or "case".
+ if(/^[^#]*\bARCH=['"]?i[34]86['"]?[;\s]*$/) {
$old_arch = $lineno;
}