From d667c07404305e2b6f40e2a1814a2b8686f2ff18 Mon Sep 17 00:00:00 2001 From: Junghyun Kim Date: Thu, 18 Aug 2016 13:04:39 +0900 Subject: [PATCH] Do not print error string "unknown keyword in config: copylinkedpackages:" 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 --- Build.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Build.pm b/Build.pm index 532faa1..33b0be6 100644 --- 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"); } -- 2.34.1