Skip to content

Commit 2db549d

Browse files
committed
remove duplicated args
1 parent 311ab37 commit 2db549d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

manifests/pip.pp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@
173173
}
174174

175175
$pip_install = "${pip_env} --log ${log}/pip.log install"
176-
$pip_common_args = "${pypi_index} ${proxy_flag} ${install_args} ${install_editable} ${source}"
176+
$pip_common_args = "${pypi_index} ${proxy_flag} ${install_editable} ${source}"
177177

178178
# Explicit version out of VCS when PIP supported URL is provided
179179
if $source =~ /^'(git\+|hg\+|bzr\+|svn\+)(http|https|ssh|svn|sftp|ftp|lp|git)(:\/\/).+'$/ {
@@ -195,7 +195,7 @@
195195

196196
'present': {
197197
# Whatever version is available.
198-
$command = "${pip_install} ${pip_common_args}"
198+
$command = "${pip_install} ${install_args} ${pip_common_args}"
199199
$unless_command = "${pip_env} list | grep -i -e '${grep_regex}'"
200200
}
201201

@@ -214,7 +214,7 @@
214214
$grep_regex_pkgname_with_dashes = "^${pkgname_with_dashes}=="
215215
$installed_version = join( ["${pip_env} freeze --all", " | grep -i -e ${grep_regex_pkgname_with_dashes} | cut -d= -f3", " | tr -d '[:space:]'",])
216216

217-
$command = "${pip_install} --upgrade ${pip_common_args}"
217+
$command = "${pip_install} --upgrade ${install_args} ${pip_common_args}"
218218
$unless_command = "[ \$(${latest_version}) = \$(${installed_version}) ]"
219219
}
220220

0 commit comments

Comments
 (0)