Do not print error string "unknown keyword in config: copylinkedpackages:"
authorJunghyun Kim <jh0822.kim@samsung.com>
Thu, 18 Aug 2016 04:04:39 +0000 (13:04 +0900)
committerSoonKyu Park <sk7.park@samsung.com>
Mon, 26 Sep 2016 07:32:00 +0000 (16:32 +0900)
We add "CopyLinkedPackages: yes" in the project config
to reduce build redundancy for prerelease projects.
After then, "build" package complains
"unknown keyword in config: copylinkedpackages:"
because it does not understand this keyword
even though it does not need to understand this keyword.

Hence, I just added an "if" statement not to print this complain.

Change-Id: I5aa4044e629cf1f1a4af1318eb6b2ded8ac982fb
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
Build.pm

index 565e54e02b01efac968a7e30116208193d418364..2ba2ce15f027a080c90bffe2823cf53bbeb2a6c5 100644 (file)
--- a/Build.pm
+++ b/Build.pm
@@ -299,6 +299,8 @@ sub read_config {
       }
     } elsif ($l0 eq 'rpmbuildstage:') { # use the rpmbuild --stage option
       $config->{'rpmbuildstage'} = $l[0];
+    } elsif ($l0 eq 'copylinkedpackages:') { # to enable the RPM compariton tool for prerelease projects
+      # Since it is not used in build package, do nothing.
     } elsif ($l0 !~ /^[#%]/) {
       warn("unknown keyword in config: $l0\n");
     }