def METHOD_NAME(self, pm, manifest):
    pkgs_to_install = manifest.parse_initial_manifest()
    if (self.d.getVar('BUILD_IMAGES_FROM_FEEDS') or "") != "1":
        pm.write_index()
    pm.update()
    for pkg_type in self.install_order:
        if pkg_type in pkgs_to_install:
            pm.install(pkgs_to_install[pkg_type],
                       [False, True][pkg_type == Manifest.PKG_TYPE_ATTEMPT_ONLY])