mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Merge pull request #1131 from rentalita/develop
Restrict APT package version search to "Version".
This commit is contained in:
commit
1cd182bfbb
@ -42,7 +42,7 @@ def available_version(name):
|
||||
salt '*' pkg.available_version <package name>
|
||||
'''
|
||||
version = ''
|
||||
cmd = 'apt-cache -q show {0} | grep Version'.format(name)
|
||||
cmd = 'apt-cache -q show {0} | grep ^Version'.format(name)
|
||||
|
||||
out = __salt__['cmd.run_stdout'](cmd)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user