Skip to content

Commit

Permalink
- buildinfo --debug option for verbose output of dependency calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschroeter committed Dec 4, 2012
1 parent 081e682 commit 613e2b5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions osc/commandline.py
Original file line number Diff line number Diff line change
Expand Up @@ -4749,6 +4749,8 @@ def do_dependson(self, subcmd, opts, *args):
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',
Expand Down Expand Up @@ -4824,6 +4826,7 @@ def do_buildinfo(self, subcmd, opts, *args):
print ''.join(get_buildinfo(apiurl,
project, package, repository, arch,
specfile=build_descr_data,
debug=opts.debug,
addlist=opts.extra_pkgs))


Expand Down
4 changes: 3 additions & 1 deletion osc/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 613e2b5

Please sign in to comment.