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 01:36:10 +0000 (10:36 +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 f058ede17faa90b838827f77f0bd857010378c85..33b0be6bd0c92a2f02debf193d0d8e1129d8088b 100644 (file)
--- 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");
     }