Add support for --quiet-build and --quiet-fail to portage module
PR #36452
This commit is contained in:
parent
16c564c4b4
commit
d1332b83ee
1 changed files with 29 additions and 1 deletions
|
@ -172,6 +172,25 @@ options:
|
||||||
default: None
|
default: None
|
||||||
version_added: 2.3
|
version_added: 2.3
|
||||||
|
|
||||||
|
quietbuild:
|
||||||
|
description:
|
||||||
|
- Redirect all build output to logs alone, and do not display it
|
||||||
|
- on stdout (--quiet-build)
|
||||||
|
required: false
|
||||||
|
default: False
|
||||||
|
choices: [ "yes", "no" ]
|
||||||
|
version_added: 2.6
|
||||||
|
|
||||||
|
quietfail:
|
||||||
|
description:
|
||||||
|
- Suppresses display of the build log on stdout (--quiet-fail)
|
||||||
|
- Only the die message and the path of the build log will be
|
||||||
|
- displayed on stdout.
|
||||||
|
required: false
|
||||||
|
default: False
|
||||||
|
choices: [ "yes", "no" ]
|
||||||
|
version_added: 2.6
|
||||||
|
|
||||||
requirements: [ gentoolkit ]
|
requirements: [ gentoolkit ]
|
||||||
author:
|
author:
|
||||||
- "William L Thomson Jr (@wltjr)"
|
- "William L Thomson Jr (@wltjr)"
|
||||||
|
@ -320,6 +339,8 @@ def emerge_packages(module, packages):
|
||||||
'usepkgonly': '--usepkgonly',
|
'usepkgonly': '--usepkgonly',
|
||||||
'usepkg': '--usepkg',
|
'usepkg': '--usepkg',
|
||||||
'keepgoing': '--keep-going',
|
'keepgoing': '--keep-going',
|
||||||
|
'quietbuild': '--quiet-build',
|
||||||
|
'quietfail': '--quiet-fail',
|
||||||
}
|
}
|
||||||
for flag, arg in emerge_flags.items():
|
for flag, arg in emerge_flags.items():
|
||||||
if p[flag]:
|
if p[flag]:
|
||||||
|
@ -490,9 +511,16 @@ def main():
|
||||||
keepgoing=dict(default=False, type='bool'),
|
keepgoing=dict(default=False, type='bool'),
|
||||||
jobs=dict(default=None, type='int'),
|
jobs=dict(default=None, type='int'),
|
||||||
loadavg=dict(default=None, type='float'),
|
loadavg=dict(default=None, type='float'),
|
||||||
|
quietbuild=dict(default=False, type='bool'),
|
||||||
|
quietfail=dict(default=False, type='bool'),
|
||||||
),
|
),
|
||||||
required_one_of=[['package', 'sync', 'depclean']],
|
required_one_of=[['package', 'sync', 'depclean']],
|
||||||
mutually_exclusive=[['nodeps', 'onlydeps'], ['quiet', 'verbose']],
|
mutually_exclusive=[
|
||||||
|
['nodeps', 'onlydeps'],
|
||||||
|
['quiet', 'verbose'],
|
||||||
|
['quietbuild', 'verbose'],
|
||||||
|
['quietfail', 'verbose'],
|
||||||
|
],
|
||||||
supports_check_mode=True,
|
supports_check_mode=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue