projects
/
platform
/
upstream
/
libabigail.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8ca171
)
Warn properly when cannot find peer RPM
author
Chenxiong Qi
<cqi@redhat.com>
Sun, 18 Dec 2016 15:12:51 +0000
(23:12 +0800)
committer
Dodji Seketeli
<dodji@redhat.com>
Mon, 19 Dec 2016 11:30:18 +0000
(12:30 +0100)
* tools/fedabipkgdiff: (RPMCollection.get_peer_rpm): Return None
when cannot find peer RPM due to nonexistent arch.
Signed-off-by: Chenxiong Qi <cqi@redhat.com>
tools/fedabipkgdiff
patch
|
blob
|
history
diff --git
a/tools/fedabipkgdiff
b/tools/fedabipkgdiff
index 9a7f8eade8373028561171c6a78e0fa4cd2edd22..28a311ac5c20b46368cbc739c4c52a6ba187ecab 100755
(executable)
--- a/
tools/fedabipkgdiff
+++ b/
tools/fedabipkgdiff
@@
-482,6
+482,8
@@
class RPMCollection(object):
def get_peer_rpm(self, rpm):
"""Get peer rpm of rpm from this collection"""
+ if rpm.arch not in self.rpms:
+ return None
for _rpm in self.rpms[rpm.arch]:
if _rpm.is_peer(rpm):
return _rpm