scancpan: handle recommended dependencies as optional packages
commitd6cff4abdc87c2f4ad96c2dd2caf49a60494fdbf
authorFrancois Perrad <fperrad@gmail.com>
Sun, 13 Mar 2016 17:37:28 +0000 (13 18:37 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 15 Mar 2016 22:16:29 +0000 (15 23:16 +0100)
tree923c918e653172d5f3e60cdd97bea9d153ece567
parent6a1274705d3723b60f1ce16cdb6b2ffcfa8bd144
scancpan: handle recommended dependencies as optional packages

Currently, without the flag -recommend, scancpan takes as dependency
only one which has the relationship "requires"; this mode works fine.
And, with the flag -recommend, scancpan takes all ones (ie. with
relationship "requires" or "recommends") in the same way; this mode
never works fine, because it is too simplistic.

With this commit, the "not required" dependencies are handled as
optional BR package or skipped if a cyclic dependency is detected.

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
support/scripts/scancpan