mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #1324 from blast-hardcheese/develop
apt module: Forcing an explicit match on virtual package names
This commit is contained in:
commit
bd0ce29c89
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue