1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-04 18:46:17 +01:00

do not compare boolean with 0

This commit is contained in:
Michal Vyskocil 2010-04-06 11:04:48 +02:00
parent c763369c17
commit 10bda9b4eb

View File

@ -363,7 +363,7 @@ class Osc(cmdln.Cmdln):
print_not_found = False
else:
print '\n'.join(l)
if opts.expand or opts.unexpand or link_seen == 0: break
if opts.expand or opts.unexpand or not link_seen: break
m = show_files_meta(conf.config['apiurl'], project, package)
xml = ET.fromstring(''.join(m)).find('linkinfo')
print "# -> %s %s" % (xml.get('project'), xml.get('package'))