From f485eb28f53de8b8cda12ddc153cd5ef53f7c057 Mon Sep 17 00:00:00 2001 From: Patrik Lundin Date: Sun, 3 Mar 2013 00:02:50 +0100 Subject: [PATCH] Teach setup about OpenBSD package manager. * We cannot depend on the path because FreeBSD for example uses the same path. --- library/setup | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/setup b/library/setup index 141e635732..9ae66a0a5a 100644 --- a/library/setup +++ b/library/setup @@ -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')