Added postwhite support. (#171)

* Added postwhite support.

see #109

* Fixed unit test.
This commit is contained in:
Antoine Nguyen
2017-12-07 17:42:38 +01:00
committed by GitHub
parent 2c206a52b1
commit 0ceea13d4b
7 changed files with 424 additions and 346 deletions

View File

@@ -14,7 +14,7 @@ class Installer(object):
appname = None
no_daemon = False
daemon_name = None
packages = []
packages = {}
with_user = False
with_db = False
config_files = []
@@ -97,7 +97,7 @@ class Installer(object):
def get_packages(self):
"""Return the list of packages to install."""
return self.packages[package.backend.FORMAT]
return self.packages.get(package.backend.FORMAT, {})
def install_packages(self):
"""Install required packages."""