Recognize Recommends relations of RPMs
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Thu, 27 Oct 2016 05:26:00 +0000 (14:26 +0900)
committerSoonKyu Park <sk7.park@samsung.com>
Fri, 10 Feb 2017 01:03:19 +0000 (10:03 +0900)
commit5b60f70921a1174e9ee2ebb475a4c1f2c990be0c
tree2d808f375d64127b44772771707756be4960ef5f
parent53409a67edf5778f7939506c30c192551f982bee
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