mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
FreeBSD supports packages in format java/openjdk7 so the prior commit broke that functionality. Check freebsd/pkg#1409 for more info.
This commit is contained in:
parent
a36866d7db
commit
690addf0b4
1 changed files with 5 additions and 1 deletions
|
@ -262,7 +262,11 @@ def latest_version(*names, **kwargs):
|
|||
quiet = False
|
||||
|
||||
for name in names:
|
||||
cmd = [_pkg(jail, chroot), 'search', '-S', 'name', '-Q', 'version', '-e']
|
||||
# FreeBSD supports packages in format java/openjdk7
|
||||
if '/' in name:
|
||||
cmd = [_pkg(jail, chroot), 'search']
|
||||
else:
|
||||
cmd = [_pkg(jail, chroot), 'search', '-S', 'name', '-Q', 'version', '-e']
|
||||
if quiet:
|
||||
cmd.append('-q')
|
||||
cmd.append(name)
|
||||
|
|
Loading…
Add table
Reference in a new issue