Teach setup about OpenBSD package manager.

* We cannot depend on the path because FreeBSD for example uses the same path.
reviewable/pr18780/r1
Patrik Lundin 12 years ago
parent 7a238bbc03
commit 239a056c20

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

Loading…
Cancel
Save