Skip to content

Commit

Permalink
Merge pull request #682 from voxpupuli/portable-latest-version-detection
Browse files Browse the repository at this point in the history
Make latest version detection portable
  • Loading branch information
smortex authored Jan 1, 2024
2 parents 1433b2a + 0d580e0 commit 2f16b92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manifests/pip.pp
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@
$latest_version = join([
"${pip_install} ${legacy_resolver} ${pypi_index} ${pypi_extra_index} ${proxy_flag}",
" ${install_args} ${install_editable} ${real_pkgname}==notreallyaversion 2>&1",
' | grep -oP "\(from versions: .*\)" | sed -E "s/\(from versions: (.*?, )*(.*)\)/\2/g"',
" | sed -nE 's/.*\\(from versions: (.*, )*(.*)\\)/\\2/p'",
' | tr -d "[:space:]"',
])

Expand Down

0 comments on commit 2f16b92

Please sign in to comment.