1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-22 21:16:16 +01:00

- buildinfo --debug option for verbose output of dependency calculation

This commit is contained in:
Adrian Schröter 2012-12-04 16:44:14 +01:00
parent 081e682982
commit 613e2b5176
3 changed files with 7 additions and 1 deletions

1
NEWS
View File

@ -9,6 +9,7 @@
- support default maintainer/bugowner search based on binary package names
- support to lookup --all definitions of maintainers of bugowners. Either
for showing or setting them.
- buildinfo --debug option for verbose output of dependency calculation
0.136
- prefer TLS v1.1 or v1.2 if available

View File

@ -4749,6 +4749,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
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',
help='Add this package when computing the buildinfo')
@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,
project, package, repository, arch,
specfile=build_descr_data,
debug=opts.debug,
addlist=opts.extra_pkgs))

View File

@ -5123,11 +5123,13 @@ def get_dependson(apiurl, project, repository, arch, packages=None, reverse=None
f = http_GET(u)
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 = []
if addlist:
for i in addlist:
query.append('add=%s' % quote_plus(i))
if debug:
query.append('debug=1')
u = makeurl(apiurl, ['build', prj, repository, arch, package, '_buildinfo'], query=query)