Merge pull request #1324 from blast-hardcheese/develop

apt module: Forcing an explicit match on virtual package names
This commit is contained in:
Thomas S Hatch 2012-05-22 15:22:46 -07:00
commit bd0ce29c89

View file

@ -287,7 +287,7 @@ def list_pkgs(regex_string=""):
# If ret is empty at this point, check to see if the package is virtual.
# We also need aptitude past this point.
if not ret and __salt__['cmd.has_exec']('aptitude'):
cmd = ('aptitude search "{0} ?virtual ?reverse-provides(?installed)"'
cmd = ('aptitude search "?name(^{0}$) ?virtual ?reverse-provides(?installed)"'
.format(regex_string))
out = __salt__['cmd.run_stdout'](cmd)