]> git.ipfire.org Git - thirdparty/libsolv.git/commit
solver_solve: only disfavor recommends if there are any 297/head
authorAlejandro del Castillo <alejandro.delcastillo@ni.com>
Wed, 6 Feb 2019 19:24:04 +0000 (13:24 -0600)
committerAlejandro del Castillo <alejandro.delcastillo@ni.com>
Wed, 6 Feb 2019 19:24:07 +0000 (13:24 -0600)
commit19d7cc87adba92d31d5fafdf7db00920d24a96a6
tree119deb12ddc5b6af1c555d99aa43e4f24db095bd
parentdc7d0f1c3113f2c8217563166906bef3eb5d1ee1
solver_solve: only disfavor recommends if there are any

In a repo that have pkg 'a' and 'b' available, and 'b' is disfavored,
but 'a' doesn't recommend 'b', libsolv segfaults on
solver_addrecommendsrules, since solv->recommendsruleq is null. Only
call solver_addrecommendsrules if there are recommends rules.

Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
src/solver.c