summaryrefslogtreecommitdiff
path: root/rule_checker.py
diff options
context:
space:
mode:
authorMyungJoo Ham <myungjoo.ham@samsung.com>2017-04-06 13:20:26 +0900
committerMyungJoo Ham <myungjoo.ham@samsung.com>2017-04-06 13:20:26 +0900
commitba1f17866ad575e29cfbdd25def136d8461ed1c6 (patch)
tree1db88842973059b402eba0703e8940ebdced080f /rule_checker.py
parenteb65c6b1e3e5e9e32ba00f64c74381e7d2c6258b (diff)
downloadbuilding-blocks-ba1f17866ad575e29cfbdd25def136d8461ed1c6.tar.gz
building-blocks-ba1f17866ad575e29cfbdd25def136d8461ed1c6.tar.bz2
building-blocks-ba1f17866ad575e29cfbdd25def136d8461ed1c6.zip
RULE: fix: allow %ifarch/%endif
1. Allow %ifarch/%endif in %files section 2. Make a more clear error message for RULE 5-3. Change-Id: I2f04234c8b01dd6d718ceece94643ee085081131 Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Diffstat (limited to 'rule_checker.py')
-rwxr-xr-xrule_checker.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/rule_checker.py b/rule_checker.py
index e587cfa..d01eff6 100755
--- a/rule_checker.py
+++ b/rule_checker.py
@@ -97,9 +97,9 @@ def ruleCheckInc(file):
files = 0
else:
if re.search(r'^\s*[^#\s]+', line) and \
- not re.search(r'^\s*%include', line):
+ not re.search(r'^\s*(%include)|(%endif)|(%ifarch)', line):
error += 1
- print("ERROR: RULE 5.3 a block must not have a file included")
+ print("ERROR: RULE 5.3 a block must not have a file included (%files section must be empty)")
report(file, lc, line)
continue