Skip to content

Commit

Permalink
qipkg: add option to install toolchains packages
Browse files Browse the repository at this point in the history
Change-Id: I4b16c13e715430914b8d049cb19ffc1e5c30a755
  • Loading branch information
houssemkouki committed Feb 14, 2017
1 parent c8f4c4e commit af323ec
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion python/qipkg/actions/make_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ def do(args):
output = args.output
with_breakpad = args.with_breakpad
force = args.force
with_toolchain = args.with_toolchain
pml_builder = qipkg.parsers.get_pml_builder(args)
return pml_builder.package(output=output, with_breakpad=with_breakpad, force=force)
return pml_builder.package(output=output, with_breakpad=with_breakpad, force=force, install_tc_packages=with_toolchain)
2 changes: 2 additions & 0 deletions python/qipkg/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,8 @@ def package(self, *args, **kwargs):
:param: force make package even if it does not satisfy
default package requirements
:param install_tc_packages also install toolchain
packages
"""
output = kwargs.get('output', None)
force = kwargs.get('force', False)
Expand Down
3 changes: 2 additions & 1 deletion python/qipkg/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ def pml_parser(parser):
def pkg_parser(parser):
parser.add_argument("--with-breakpad", action="store_true")
parser.add_argument("--force", action="store_true")
parser.set_defaults(with_breakpad=False, force=False)
parser.add_argument("--with-toolchain", action="store_true")
parser.set_defaults(with_breakpad=False, force=False, with_toolchain=False)

def get_pml_builder(args):
worktree = qisys.parsers.get_worktree(args, raises=False)
Expand Down

0 comments on commit af323ec

Please sign in to comment.