Fixup pkgs being empty
This commit is contained in:
parent
8e4c62e082
commit
2351306ed7
@ -193,14 +193,15 @@ class PkgInstallComponent(ComponentBase):
|
|||||||
def install(self):
|
def install(self):
|
||||||
LOG.debug('Preparing to install packages for %r', self.component_name)
|
LOG.debug('Preparing to install packages for %r', self.component_name)
|
||||||
pkgs = self._get_packages()
|
pkgs = self._get_packages()
|
||||||
pkg_names = set([p['name'] for p in pkgs])
|
if pkgs:
|
||||||
utils.log_iterable(pkg_names, logger=LOG,
|
pkg_names = set([p['name'] for p in pkgs])
|
||||||
header="Setting up %s distribution packages" % (len(pkg_names)))
|
utils.log_iterable(pkg_names, logger=LOG,
|
||||||
with utils.progress_bar(INSTALL_TITLE, len(pkgs)) as p_bar:
|
header="Setting up %s distribution packages" % (len(pkg_names)))
|
||||||
for (i, p) in enumerate(pkgs):
|
with utils.progress_bar(INSTALL_TITLE, len(pkgs)) as p_bar:
|
||||||
self.tracewriter.package_installed(p)
|
for (i, p) in enumerate(pkgs):
|
||||||
self.packager_factory.get_packager_for(p).install(p)
|
self.tracewriter.package_installed(p)
|
||||||
p_bar.update(i + 1)
|
self.packager_factory.get_packager_for(p).install(p)
|
||||||
|
p_bar.update(i + 1)
|
||||||
return self.trace_dir
|
return self.trace_dir
|
||||||
|
|
||||||
def pre_install(self):
|
def pre_install(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user