mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix detection of installed cargo packages with hyphens in name
This commit is contained in:
parent
5540dab382
commit
062ce8940e
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ class Cargo(object):
|
|||
cmd = ["install", "--list"]
|
||||
data, dummy = self._exec(cmd, True, False, False)
|
||||
|
||||
package_regex = re.compile(r"^(\w+) v(.+):$")
|
||||
package_regex = re.compile(r"^([\w\-]+) v(.+):$")
|
||||
installed = {}
|
||||
for line in data.splitlines():
|
||||
package_info = package_regex.match(line)
|
||||
|
|
Loading…
Reference in a new issue