Merge pull request #1131 from rentalita/develop

Restrict APT package version search to "Version".
This commit is contained in:
Thomas S Hatch 2012-04-24 12:52:02 -07:00
commit 1cd182bfbb

View File

@ -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)