Recognize Recommends relations of RPMs
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Thu, 27 Oct 2016 05:26:00 +0000 (14:26 +0900)
committeryang.zhang <y0169.zhang@samsung.com>
Tue, 7 Mar 2017 05:22:08 +0000 (13:22 +0800)
commit292ed284159c7726aa283d7bfb75d3c7a597f0da
tree42e0131a1fba858ec97da409a329d211d263917d
parent5e86f63fe845ed8d19c3f7247b8efc57e93bf749
Recognize Recommends relations of RPMs

When there are multiple candidate packages as a result of
Provides, the current obs-build gives an error: "have choice for".

However, according to http://www.rpm.org/wiki/PackagerDocs/Dependencies ,
Recommends tells the system to install the corresponding package
unless there is a conflict; thus, if there is a package recommended
(as described in issue #302), obs-build shall install the recommended
package, resolving "have choice for" error.

To enable, OBS project should declare:
"BuildFlags: UseRecommendsForChoices=1"
or
"BuildFlags: UseRecommendsForChoices"
in its project config.

Fixes #302

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Conflicts:
createdirdeps
expanddeps

Change-Id: I65dc6dd16a6874b7c1ae47932d37c23ec98b9cdf
Build.pm
createdirdeps
expanddeps