From 75c171f20891e58f1f14f37bba8e3e13b47bb783 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Mon, 7 Dec 2009 12:38:39 +0200 Subject: [PATCH] ts.check() is supposed to return empty list when no problems --- python/rpm/transaction.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/python/rpm/transaction.py b/python/rpm/transaction.py index 2c836f3..359d62c 100644 --- a/python/rpm/transaction.py +++ b/python/rpm/transaction.py @@ -104,13 +104,9 @@ class TransactionSet(_rpmts): def check(self, *args, **kwds): _rpmts.check(self, *args, **kwds) - probs = self.problems() - if not probs: - return None - # compatibility: munge problem strings into dependency tuples of doom res = [] - for p in probs: + for p in self.problems(): # is it anything we need to care about? if p.type == rpm.RPMPROB_CONFLICT: sense = rpm.RPMDEP_SENSE_CONFLICTS -- 2.7.4