mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-29 03:06:15 +01:00
better c&p'able output of osc maintainer
This commit is contained in:
parent
e21e1e9e42
commit
f29fc17f83
@ -4374,7 +4374,10 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
for role in roles:
|
for role in roles:
|
||||||
if opts.bugowner and not len(maintainers.get(role, [])):
|
if opts.bugowner and not len(maintainers.get(role, [])):
|
||||||
role = 'maintainer'
|
role = 'maintainer'
|
||||||
print role + ':'
|
if pac:
|
||||||
|
print "%s of %s/%s : " %(role, prj, pac)
|
||||||
|
else:
|
||||||
|
print "%s of %s : " %(role, prj)
|
||||||
if opts.email:
|
if opts.email:
|
||||||
emails = []
|
emails = []
|
||||||
for maintainer in maintainers.get(role, []):
|
for maintainer in maintainers.get(role, []):
|
||||||
@ -4385,9 +4388,13 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
elif opts.verbose:
|
elif opts.verbose:
|
||||||
userdata = []
|
userdata = []
|
||||||
for maintainer in maintainers.get(role, []):
|
for maintainer in maintainers.get(role, []):
|
||||||
user = get_user_data(conf.config['apiurl'], maintainer, 'realname', 'login', 'email')
|
user = get_user_data(conf.config['apiurl'], maintainer, 'login', 'realname', 'email')
|
||||||
userdata.extend(user)
|
userdata.append(user[0])
|
||||||
for row in build_table(3, userdata, ['realname', 'userid', 'email\n']):
|
if user[1] != '-':
|
||||||
|
userdata.append("%s <%s>"%(user[1], user[2]))
|
||||||
|
else:
|
||||||
|
userdata.append(user[2])
|
||||||
|
for row in build_table(2, userdata, None, 3):
|
||||||
print row
|
print row
|
||||||
else:
|
else:
|
||||||
print ', '.join(maintainers.get(role, [])) or '-'
|
print ', '.join(maintainers.get(role, [])) or '-'
|
||||||
|
Loading…
Reference in New Issue
Block a user