RULE 5.7.1 modified to allow smart-device examples to express KS 65/126965/1
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Tue, 25 Apr 2017 11:25:11 +0000 (20:25 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Tue, 25 Apr 2017 11:25:11 +0000 (20:25 +0900)
Change-Id: Ia759ed5b6d18861aaf6b876adb8722273a7cd049
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
RULES
rule_checker.py

diff --git a/RULES b/RULES
index daa7e35a61101116195e02186bc5a2dcf449f389..463e78c652f2d83c83d8115efd809c82ff789795 100644 (file)
--- a/RULES
+++ b/RULES
@@ -132,7 +132,7 @@ or packages, but is used to provide UI elements in TIC.
 5.7. If the first line of %description starts with __KS_URL__, it denotes for
 the model ks file URL to be interpreted by TIC.
 
-    5.7.1. Only platform-preset-boards may use such keywords
+    5.7.1. Only platform-Preset_boards/sd may use such keywords
     5.7.2. Only one package with such keyword is effective. If there are two packages
         with such keywords are chosen simultaneously, the behavior is "undefined".
     5.7.3. The section of "%packages" in the linked ks file is ignored.
index fc159019fa12d48722adbe31b8b8da6ff0f324fd..48fe5c680f9e03656bd1b4db3cc82a76ad4e38b3 100755 (executable)
@@ -117,7 +117,7 @@ def ruleCheckInc(file):
        if description == 1:
            description = 0
            if re.search(r'^__KS_URL__', line):
-               if not re.search(r'Preset_boards-', descpkg):
+               if not re.search(r'Preset_boards-', descpkg) and not re.search(r'Preset_sd-', descpkg):
                    error += 1
                    print("ERROR: Rule 5.7.1. The package: "+descpkg)
                    report(file, lc, line)