From f38266a41e0d31d1b53d6110d0e8bd2ef1e8898d Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Mar 25 2020 08:22:21 +0000 Subject: Mark elements with associated problems as failed An element with a problem can not possibly succeed so mark these failures early. Doesn't make much of a difference as problems will prevent the transaction from starting in the first place but it makes sense anyway. --- diff --git a/lib/rpmte.c b/lib/rpmte.c index d980a37..e7ec89c 100644 --- a/lib/rpmte.c +++ b/lib/rpmte.c @@ -696,6 +696,7 @@ static void appendProblem(rpmte te, rpmProblemType type, if (te->probs == NULL) te->probs = rpmpsCreate(); rpmpsAppendProblem(te->probs, p); + rpmteMarkFailed(te); } rpmProblemFree(p); }