mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-02 09:46:16 +01:00
- buildinfo --debug option for verbose output of dependency calculation
This commit is contained in:
parent
081e682982
commit
613e2b5176
1
NEWS
1
NEWS
@ -9,6 +9,7 @@
|
|||||||
- support default maintainer/bugowner search based on binary package names
|
- support default maintainer/bugowner search based on binary package names
|
||||||
- support to lookup --all definitions of maintainers of bugowners. Either
|
- support to lookup --all definitions of maintainers of bugowners. Either
|
||||||
for showing or setting them.
|
for showing or setting them.
|
||||||
|
- buildinfo --debug option for verbose output of dependency calculation
|
||||||
|
|
||||||
0.136
|
0.136
|
||||||
- prefer TLS v1.1 or v1.2 if available
|
- prefer TLS v1.1 or v1.2 if available
|
||||||
|
@ -4749,6 +4749,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
print " ", dep.text
|
print " ", dep.text
|
||||||
|
|
||||||
|
|
||||||
|
@cmdln.option('-d', '--debug', action='store_true',
|
||||||
|
help='verbose output of build dependencies')
|
||||||
@cmdln.option('-x', '--extra-pkgs', metavar='PAC', action='append',
|
@cmdln.option('-x', '--extra-pkgs', metavar='PAC', action='append',
|
||||||
help='Add this package when computing the buildinfo')
|
help='Add this package when computing the buildinfo')
|
||||||
@cmdln.option('-p', '--prefer-pkgs', metavar='DIR', action='append',
|
@cmdln.option('-p', '--prefer-pkgs', metavar='DIR', action='append',
|
||||||
@ -4824,6 +4826,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
print ''.join(get_buildinfo(apiurl,
|
print ''.join(get_buildinfo(apiurl,
|
||||||
project, package, repository, arch,
|
project, package, repository, arch,
|
||||||
specfile=build_descr_data,
|
specfile=build_descr_data,
|
||||||
|
debug=opts.debug,
|
||||||
addlist=opts.extra_pkgs))
|
addlist=opts.extra_pkgs))
|
||||||
|
|
||||||
|
|
||||||
|
@ -5123,11 +5123,13 @@ def get_dependson(apiurl, project, repository, arch, packages=None, reverse=None
|
|||||||
f = http_GET(u)
|
f = http_GET(u)
|
||||||
return f.read()
|
return f.read()
|
||||||
|
|
||||||
def get_buildinfo(apiurl, prj, package, repository, arch, specfile=None, addlist=None):
|
def get_buildinfo(apiurl, prj, package, repository, arch, specfile=None, addlist=None, debug=None):
|
||||||
query = []
|
query = []
|
||||||
if addlist:
|
if addlist:
|
||||||
for i in addlist:
|
for i in addlist:
|
||||||
query.append('add=%s' % quote_plus(i))
|
query.append('add=%s' % quote_plus(i))
|
||||||
|
if debug:
|
||||||
|
query.append('debug=1')
|
||||||
|
|
||||||
u = makeurl(apiurl, ['build', prj, repository, arch, package, '_buildinfo'], query=query)
|
u = makeurl(apiurl, ['build', prj, repository, arch, package, '_buildinfo'], query=query)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user