diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2009-12-07 12:38:39 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2009-12-07 12:38:39 +0200 |
commit | 75c171f20891e58f1f14f37bba8e3e13b47bb783 (patch) | |
tree | e658582f1b579b6f76bf0c75313d75d056f95e05 /python | |
parent | 9b94ae3dbc6d98f5c1929829735ff918aab5ef4d (diff) | |
download | librpm-tizen-75c171f20891e58f1f14f37bba8e3e13b47bb783.tar.gz librpm-tizen-75c171f20891e58f1f14f37bba8e3e13b47bb783.tar.bz2 librpm-tizen-75c171f20891e58f1f14f37bba8e3e13b47bb783.zip |
ts.check() is supposed to return empty list when no problems
Diffstat (limited to 'python')
-rw-r--r-- | python/rpm/transaction.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/python/rpm/transaction.py b/python/rpm/transaction.py index 2c836f3ee..359d62cd3 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 |