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

print a real content of linkinfo->project and package, not the same filelist twice

This commit is contained in:
Michal Vyskocil 2010-04-06 11:07:56 +02:00
parent 10bda9b4eb
commit a4a179f1d9

View File

@ -366,7 +366,8 @@ class Osc(cmdln.Cmdln):
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'))
project, package = xml.get('project'), xml.get('package')
print "# -> %s %s" % (project, package)
opts.expand = True
if fname and print_not_found:
print 'file \'%s\' does not exist' % fname