From 1b639d8de7bf62229f4f853d13aae293111bbdf5 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 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Build.pm b/Build.pm index f058ede..33b0be6 100644 --- a/Build.pm +++ b/Build.pm @@ -327,6 +327,10 @@ sub read_config { } else { push @{$config->{'constraint'}}, $l; } + } 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.7.4