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>
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