summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunghyun Kim <jh0822.kim@samsung.com>2016-08-18 13:04:39 +0900
committerSoonKyu Park <sk7.park@samsung.com>2016-09-26 10:36:10 +0900
commit1b639d8de7bf62229f4f853d13aae293111bbdf5 (patch)
tree0b0487df0fafe83037649770177e82e31361776b
parentaf9ad6b54cbf011308e1cdade2d92666ef3f564f (diff)
downloadbuild-1b639d8de7bf62229f4f853d13aae293111bbdf5.tar.gz
build-1b639d8de7bf62229f4f853d13aae293111bbdf5.tar.bz2
build-1b639d8de7bf62229f4f853d13aae293111bbdf5.zip
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 <jh0822.kim@samsung.com>
-rw-r--r--Build.pm4
1 files changed, 4 insertions, 0 deletions
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");
}