Teach setup about OpenBSD package manager.

* We cannot depend on the path because FreeBSD for example uses the same path.
This commit is contained in:
Patrik Lundin 2013-03-03 00:02:50 +01:00
parent eb6398f168
commit f485eb28f5

View file

@ -245,6 +245,8 @@ class Facts(object):
for pkg in Facts.PKG_MGRS: for pkg in Facts.PKG_MGRS:
if os.path.exists(pkg['path']): if os.path.exists(pkg['path']):
self.facts['pkg_mgr'] = pkg['name'] self.facts['pkg_mgr'] = pkg['name']
if self.facts['system'] == 'OpenBSD':
self.facts['pkg_mgr'] = 'openbsd_pkg'
def get_lsb_facts(self): def get_lsb_facts(self):
lsb_path = module.get_bin_path('lsb_release') lsb_path = module.get_bin_path('lsb_release')