Merge pull request #1865 from nilxam/silly_me_compare_pkglist
compare_pkglist: fix return code handling introduced by 2e339acffb03b6786c902c2ebd250d1c3720e315
This commit is contained in:
commit
be751cc578
@ -80,10 +80,13 @@ class CompareList(object):
|
||||
u = makeurl(self.apiurl, ['source', project, package], query=query)
|
||||
root = ET.parse(http_GET(u)).getroot()
|
||||
links = root.findall('linkinfo/linked')
|
||||
if links is None:
|
||||
return False
|
||||
|
||||
for linked in links:
|
||||
if linked.get('project') == project and linked.get('package').startswith("%s." % package):
|
||||
return False
|
||||
return links
|
||||
return True
|
||||
|
||||
def check_diff(self, package, old_prj, new_prj):
|
||||
logging.debug('checking %s ...' % package)
|
||||
@ -158,7 +161,7 @@ class CompareList(object):
|
||||
if pkg not in target:
|
||||
# ignore the second specfile package
|
||||
linked = self.is_linked_package(self.old_prj, pkg)
|
||||
if linked is not None:
|
||||
if linked:
|
||||
continue
|
||||
|
||||
if self.existin:
|
||||
|
Loading…
x
Reference in New Issue
Block a user