adding support for DragonFly BSD

adding support for DragonFly BSD
This commit is contained in:
Sergey Paramonov 2016-01-07 22:57:39 -05:00
parent ad7522c98d
commit 45206dfe3d

View File

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