1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-29 03:06:15 +01:00
Add "--multibuild-package" option to do_triggerreason
This commit is contained in:
Marcus Huewe 2017-08-15 16:38:45 +02:00
commit a170e1236b

View File

@ -5416,6 +5416,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
data = f.read(BUFSIZE)
f.close()
@cmdln.option('-M', '--multibuild-package', metavar='MPAC',
help='get triggerreason of the specified multibuild package')
@cmdln.alias('tr')
def do_triggerreason(self, subcmd, opts, *args):
"""${cmd_name}: Show reason why a package got triggered to build
@ -5461,6 +5463,9 @@ Please submit there instead, or use --nodevelproject to force direct submission.
else:
raise oscerr.WrongArgs('Too many arguments.')
if opts.multibuild_package:
package = package + ":" + opts.multibuild_package
print(apiurl, project, package, repository, arch)
xml = show_package_trigger_reason(apiurl, project, package, repository, arch)
root = ET.fromstring(xml)