Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Nest
Forks
Puppet Portage
Commits
c63cb1cb
Unverified
Commit
c63cb1cb
authored
Oct 10, 2017
by
Robin H. Johnson
Browse files
package: improve emerge_command selection.
Signed-off-by:
Robin H. Johnson
<
robbat2@gentoo.org
>
parent
0fa19a38
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
manifests/package.pp
manifests/package.pp
+5
-1
metadata.json
metadata.json
+1
-1
No files found.
manifests/package.pp
View file @
c63cb1cb
...
@@ -123,7 +123,11 @@ define portage::package (
...
@@ -123,7 +123,11 @@ define portage::package (
$accept_keywords_target
=
undef
,
$accept_keywords_target
=
undef
,
$mask_target
=
undef
,
$mask_target
=
undef
,
$unmask_target
=
undef
,
$unmask_target
=
undef
,
$emerge_command
=
undef
,
)
{
)
{
include
::portage::params
$_emerge_command
=
pick
(
$emerge_command
,
$portage::emerge_command
,
$portage::params::emerge_command
)
$atom
=
$ensure
?
{
$atom
=
$ensure
?
{
/
(
present|absent|purged|held|installed|latest
)
/
=>
$name
,
/
(
present|absent|purged|held|installed|latest
)
/
=>
$name
,
...
@@ -279,7 +283,7 @@ define portage::package (
...
@@ -279,7 +283,7 @@ define portage::package (
$rebuild_command
=
$removing
?
{
$rebuild_command
=
$removing
?
{
true
=>
'/bin/true'
,
true
=>
'/bin/true'
,
false
=>
"
${
portage::
emerge_command}
--changed-use -u1
${atom}
"
,
false
=>
"
${
_
emerge_command}
--changed-use -u1
${atom}
"
,
default
=>
'/bin/false Should-Not-Trigger'
,
# This should not happen.
default
=>
'/bin/false Should-Not-Trigger'
,
# This should not happen.
}
}
notify
{
"rebuild_
${atom}
_msg"
:
notify
{
"rebuild_
${atom}
_msg"
:
...
...
metadata.json
View file @
c63cb1cb
{
{
"name"
:
"gentoo-portage"
,
"name"
:
"gentoo-portage"
,
"version"
:
"2.4.
3
"
,
"version"
:
"2.4.
4
"
,
"author"
:
"Gentoo"
,
"author"
:
"Gentoo"
,
"summary"
:
"Puppet types and providers for Gentoo portage"
,
"summary"
:
"Puppet types and providers for Gentoo portage"
,
"license"
:
"GPL-2.0"
,
"license"
:
"GPL-2.0"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment