Merge pull request #30223 from serge-p/patch-11

adding support for DragonFly BSD
This commit is contained in:
Mike Place 2016-01-13 11:24:29 -07:00
commit 7e89a460e4

View File

@ -51,9 +51,12 @@ __virtualname__ = 'pkg'
def __virtual__():
'''
Load as 'pkg' on FreeBSD 10 and greater.
Load as 'pkg' on DragonFly BSD.
Load as 'pkg' on FreeBSD 9 when config option
``providers:pkg`` is set to 'pkgng'.
'''
if __grains__['kernel'] == 'DragonFly':
return __virtualname__
if __grains__['os'] == 'FreeBSD' and float(__grains__['osrelease']) >= 10:
return __virtualname__
if __grains__['os'] == 'FreeBSD' and \