diff --git a/NEWS b/NEWS index f851d37d..3db8ca84 100644 --- a/NEWS +++ b/NEWS @@ -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 diff --git a/osc/commandline.py b/osc/commandline.py index 8d46e4cb..6b1d2f4c 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -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)) diff --git a/osc/core.py b/osc/core.py index 7d205eb9..ae863289 100644 --- a/osc/core.py +++ b/osc/core.py @@ -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)