summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKyle Keen <keenerd@gmail.com>2015-06-25 12:52:35 -0400
committerKyle Keen <keenerd@gmail.com>2015-06-25 12:52:35 -0400
commit00e3c4b72f9768e5f3b793ccffbe95edbd2c5442 (patch)
tree7f3b4b5c8454ddb5fbc6e4dfd3d9f9e8de7b46eb
parent723753105a358bf6d2f8c5289a0d253aa70a52f9 (diff)
downloadnamcap-00e3c4b72f9768e5f3b793ccffbe95edbd2c5442.tar.gz
namcap-00e3c4b72f9768e5f3b793ccffbe95edbd2c5442.zip
CARCH variations (FS#45456)
-rw-r--r--Namcap/rules/carch.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/Namcap/rules/carch.py b/Namcap/rules/carch.py
index 7cb3319..c2d4a17 100644
--- a/Namcap/rules/carch.py
+++ b/Namcap/rules/carch.py
@@ -34,7 +34,14 @@ class package(PkgbuildRule):
# strip any comments
line = line.split('#')[0]
match = archmatch.search(line)
- if match and not archline.match(line) and not '$CARCH' in line:
- self.warnings.append(("specific-host-type-used %s", match.group(1)))
+ if not match:
+ continue
+ if archline.match(line):
+ continue
+ if '$CARCH' in line:
+ continue
+ if '${CARCH}' in line:
+ continue
+ self.warnings.append(("specific-host-type-used %s", match.group(1)))
# vim: set ts=4 sw=4 noet: