Commit ee054a49 by Andy Kluger

Fix for Issue #2470 - gem version string processing

This fix assumes that no sane gem version has spaces in it, so when one like that is encountered, it will get truncated at the first space.
parent d21714a3
......@@ -104,7 +104,7 @@ def get_installed_versions(module, remote=False):
if match:
versions = match.group(1)
for version in versions.split(', '):
installed_versions.append(version)
installed_versions.append(version.split()[0])
return installed_versions
def exists(module):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment