We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1433b2a + 0d580e0 commit 2f16b92Copy full SHA for 2f16b92
1 file changed
manifests/pip.pp
@@ -220,7 +220,7 @@
220
$latest_version = join([
221
"${pip_install} ${legacy_resolver} ${pypi_index} ${pypi_extra_index} ${proxy_flag}",
222
" ${install_args} ${install_editable} ${real_pkgname}==notreallyaversion 2>&1",
223
- ' | grep -oP "\(from versions: .*\)" | sed -E "s/\(from versions: (.*?, )*(.*)\)/\2/g"',
+ " | sed -nE 's/.*\\(from versions: (.*, )*(.*)\\)/\\2/p'",
224
' | tr -d "[:space:]"',
225
])
226
0 commit comments