michal-grzedzicki / rpms / rpm

Forked from rpms/rpm 5 months ago
Clone
043c42
From 57b4f21634429ccd29d47cf93ec0841f70b68404 Mon Sep 17 00:00:00 2001
043c42
Message-Id: <57b4f21634429ccd29d47cf93ec0841f70b68404.1545311826.git.pmatilai@redhat.com>
043c42
From: Panu Matilainen <pmatilai@redhat.com>
043c42
Date: Tue, 18 Sep 2018 11:02:36 +0300
043c42
Subject: [PATCH] Mark elements with associated problems as failed
043c42
043c42
An element with a problem can not possibly succeed so mark these failures
043c42
early. Doesn't make much of a difference as problems will prevent the
043c42
transaction from starting in the first place but it makes sense anyway.
043c42
---
043c42
 lib/rpmte.c | 1 +
043c42
 1 file changed, 1 insertion(+)
043c42
043c42
diff --git a/lib/rpmte.c b/lib/rpmte.c
043c42
index 4bdeeaf68..c5d614f67 100644
043c42
--- a/lib/rpmte.c
043c42
+++ b/lib/rpmte.c
043c42
@@ -703,6 +703,7 @@ static void appendProblem(rpmte te, rpmProblemType type,
043c42
 	if (te->probs == NULL)
043c42
 	    te->probs = rpmpsCreate();
043c42
 	rpmpsAppendProblem(te->probs, p);
043c42
+	rpmteMarkFailed(te);
043c42
     }
043c42
     rpmProblemFree(p);
043c42
 }
043c42
-- 
043c42
2.19.2
043c42