diff options
author | MyungJoo Ham <myungjoo.ham@samsung.com> | 2017-04-10 15:23:57 +0900 |
---|---|---|
committer | MyungJoo Ham <myungjoo.ham@samsung.com> | 2017-04-10 15:50:34 +0900 |
commit | 68c94f328866023818f4c0582e68195ffac9e883 (patch) | |
tree | c77b670f24c592aac1189fcc59c2c5de8bd2fe20 | |
parent | 9f1a4b336664436e1e441fb62e90ecc2fdf1ca53 (diff) | |
download | building-blocks-68c94f328866023818f4c0582e68195ffac9e883.tar.gz building-blocks-68c94f328866023818f4c0582e68195ffac9e883.tar.bz2 building-blocks-68c94f328866023818f4c0582e68195ffac9e883.zip |
Fix: add a line between lua-printed expressionssubmit/tizen/20170410.065313submit/tizen/20170410.065218
Change-Id: Ibd10ed7bfa6da1cb1ca9eb118e3ed6b93a63d68c
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
-rw-r--r-- | packaging/building-blocks.spec | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/packaging/building-blocks.spec b/packaging/building-blocks.spec index ef789d7..e5167d7 100644 --- a/packaging/building-blocks.spec +++ b/packaging/building-blocks.spec @@ -114,7 +114,7 @@ presets describing specific products. # Do not try to include files unless RPMBUILD has already expanded source files to SOURCES # Use Source1001 (domain-kernel) as the probing point. -%define include_if_mainbuild() %{expand:%{lua:if posix.access(rpm.expand("%{SOURCE1001}"), "f") then print("%include "..rpm.expand("%{1}")) end}} +%define include_if_mainbuild() %{expand:%{lua:if posix.access(rpm.expand("%{SOURCE1001}"), "f") then print("%include "..rpm.expand("%{1}").." ") end}} # Create a target device preset from .ks file used to create device iamge. # This script writes build-spec when building the build-spec itself. :) @@ -132,11 +132,12 @@ presets describing specific products. start = 1 \ else \ if (start == 1) then \ - if (string.match(line, '^#')) then \ - elseif (string.match(line, '^-')) then \ - elseif (string.match(line, '^$')) then \ + if (string.match(line, '#')) then \ + elseif (string.sub(line, 1, 1) == '-') then \ + elseif (string.len(line) == 0) then\ else \ print("Requires: "..line) \ + print("\\n") \ end \ end \ end \ |