From ec599bf23844c82ae101e02ca5f6efff121f5a96 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Apr 23 2020 14:26:58 +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); }