mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-03 21:36:15 +01:00
Merge branch 'fix_#314' of https://github.com/lethliel/osc
Add "--multibuild-package" option to do_triggerreason
This commit is contained in:
commit
a170e1236b
@ -5416,6 +5416,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
data = f.read(BUFSIZE)
|
data = f.read(BUFSIZE)
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
|
@cmdln.option('-M', '--multibuild-package', metavar='MPAC',
|
||||||
|
help='get triggerreason of the specified multibuild package')
|
||||||
@cmdln.alias('tr')
|
@cmdln.alias('tr')
|
||||||
def do_triggerreason(self, subcmd, opts, *args):
|
def do_triggerreason(self, subcmd, opts, *args):
|
||||||
"""${cmd_name}: Show reason why a package got triggered to build
|
"""${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:
|
else:
|
||||||
raise oscerr.WrongArgs('Too many arguments.')
|
raise oscerr.WrongArgs('Too many arguments.')
|
||||||
|
|
||||||
|
if opts.multibuild_package:
|
||||||
|
package = package + ":" + opts.multibuild_package
|
||||||
|
|
||||||
print(apiurl, project, package, repository, arch)
|
print(apiurl, project, package, repository, arch)
|
||||||
xml = show_package_trigger_reason(apiurl, project, package, repository, arch)
|
xml = show_package_trigger_reason(apiurl, project, package, repository, arch)
|
||||||
root = ET.fromstring(xml)
|
root = ET.fromstring(xml)
|
||||||
|
Loading…
Reference in New Issue
Block a user