From 7778b9851758f4f782cb5f5d5fb36e68aed3b275 Mon Sep 17 00:00:00 2001 From: Ed Bartosh Date: Tue, 19 Jan 2016 18:51:03 +0200 Subject: wic: move wks parsing code to KickStart._parse This is a preparation for implementation of include statement. Parser will be called recursively to parse included .wks files, so it should be available as a method. Signed-off-by: Ed Bartosh Signed-off-by: Richard Purdie --- scripts/lib/wic/ksparser.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scripts/lib/wic') diff --git a/scripts/lib/wic/ksparser.py b/scripts/lib/wic/ksparser.py index 7dbe052714..e366f61e0f 100644 --- a/scripts/lib/wic/ksparser.py +++ b/scripts/lib/wic/ksparser.py @@ -115,6 +115,9 @@ class KickStart(object): bootloader.add_argument('--timeout', type=int) bootloader.add_argument('--source') + self._parse(parser, confpath) + + def _parse(self, parser, confpath): with open(confpath) as conf: lineno = 0 for line in conf: -- cgit v1.2.3