projects
/
platform
/
upstream
/
rpm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b94ae3
)
ts.check() is supposed to return empty list when no problems
author
Panu Matilainen
<pmatilai@redhat.com>
Mon, 7 Dec 2009 10:38:39 +0000
(12:38 +0200)
committer
Panu Matilainen
<pmatilai@redhat.com>
Mon, 7 Dec 2009 10:38:39 +0000
(12:38 +0200)
python/rpm/transaction.py
patch
|
blob
|
history
diff --git
a/python/rpm/transaction.py
b/python/rpm/transaction.py
index
2c836f3
..
359d62c
100644
(file)
--- 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