mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-27 02:16:12 +01:00
added -M switch to osc triggerreason
This commit is contained in:
parent
d34e0ace77
commit
ad6b9cfd0a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user