Do not print error string "unknown keyword in config: copylinkedpackages:" 04/84304/2
authorJunghyun Kim <jh0822.kim@samsung.com>
Thu, 18 Aug 2016 04:04:39 +0000 (13:04 +0900)
committerJunghyun Kim <jh0822.kim@samsung.com>
Thu, 18 Aug 2016 05:51:52 +0000 (14:51 +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 532faa1..33b0be6 100644 (file)
--- a/Build.pm
+++ b/Build.pm
@@ -329,6 +329,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");
     }