def run(self): super().run() target = self.install_data root = self.root or '/' if target.startswith(root): target = os.path.join('/', os.path.relpath(target, root)) target = os.path.abspath(target) if not self.dry_run: # Install module plugincache # TODO: move this to pkgdist once plugin support is moved to snakeoil with pkgdist.syspath(pkgdist.PACKAGEDIR): from pkgcore import plugin, plugins log.info('Generating plugin cache') path = os.path.join(self.install_purelib, 'pkgcore', 'plugins') plugin.initialize_cache(plugins, force=True, cache_dir=path) # Install configuration data so pkgcore knows where to find its content, # rather than assuming it is running from a tarball/git repo. write_pkgcore_lookup_configs(self.install_purelib, target) # Generate ebd libs when not running from release tarballs that # contain pre-generated files. if not os.path.exists(os.path.join(pkgdist.REPODIR, 'man')): generated_target = os.path.join(target, EBD_INSTALL_OFFSET, '.generated') write_pkgcore_ebd_funclists(root=root, target=generated_target) write_pkgcore_ebd_cmdlists(root=root, target=generated_target) write_pkgcore_ebd_eapi_libs(root=root, target=generated_target)
def run(self): pkgdist.install.run(self) target = self.install_data root = self.root or '/' if target.startswith(root): target = os.path.join('/', os.path.relpath(target, root)) target = os.path.abspath(target) if not self.dry_run: # Install module plugincache # TODO: move this to pkgdist once plugin support is moved to snakeoil with pkgdist.syspath(pkgdist.PACKAGEDIR): from pkgcore import plugin, plugins log.info('Generating plugin cache') path = os.path.join(self.install_purelib, 'pkgcore', 'plugins') plugin.initialize_cache(plugins, force=True, cache_dir=path) # Install configuration data so pkgcore knows where to find its content, # rather than assuming it is running from a tarball/git repo. write_pkgcore_lookup_configs(self.install_purelib, target) # Generate ebd function lists used for environment filtering if # they don't exist (release tarballs contain pre-generated files). if not os.path.exists(os.path.join(pkgdist.REPODIR, 'ebd', 'generated')): write_pkgcore_ebd_funclists( root=root, target=os.path.join(target, EBD_INSTALL_OFFSET, 'generated'), scripts_dir=self.install_scripts, python_base=self.install_purelib) write_pkgcore_ebd_eapi_libs( root=root, target=os.path.join(target, EBD_INSTALL_OFFSET, 'generated'), scripts_dir=self.install_scripts, python_base=self.install_purelib)
def main(options, out, err): """Update caches.""" if not options.packages: from pkgcore import plugins options.packages = [plugins] for package in lists.stable_unique(options.packages): out.write('Updating cache for %s...' % (package.__name__,)) plugin.initialize_cache(package, force=True)
def run(self): pkgdist.install.run(self) if not self.dry_run: # Install module plugincache # TODO: move this to pkgdist once plugin support is moved to snakeoil with pkgdist.syspath(pkgdist.PACKAGEDIR): from pkgcheck import plugins from pkgcore import plugin log.info('Generating plugin cache') path = os.path.join(self.install_purelib, 'pkgcheck', 'plugins') plugin.initialize_cache(plugins, force=True, cache_dir=path)
def run(self): pkgdist.install.run(self) target = self.install_data root = self.root or '/' if target.startswith(root): target = os.path.join('/', os.path.relpath(target, root)) target = os.path.abspath(target) if not self.dry_run: # Install configuration data so the program can find its content, # rather than assuming it is running from a tarball/git repo. write_obj_lists(self.install_purelib, target) # Install module plugincache # TODO: move this to pkgdist once plugin support is moved to snakeoil with pkgdist.syspath(pkgdist.PACKAGEDIR): from pkgcheck import plugins from pkgcore import plugin log.info('Generating plugin cache') path = os.path.join(self.install_purelib, 'pkgcheck', 'plugins') plugin.initialize_cache(plugins, force=True, cache_dir=path)
def run(self): pkgdist.install.run(self) target = self.install_data root = self.root or '/' if target.startswith(root): target = os.path.join('/', os.path.relpath(target, root)) target = os.path.abspath(target) if not self.dry_run: # Install module plugincache # TODO: move this to pkgdist once plugin support is moved to snakeoil with pkgdist.syspath(pkgdist.PACKAGEDIR): from pkgcore import plugin, plugins log.info('Generating plugin cache') path = os.path.join(self.install_purelib, 'pkgcore', 'plugins') plugin.initialize_cache(plugins, force=True, cache_dir=path) # Install configuration data so pkgcore knows where to find its content, # rather than assuming it is running from a tarball/git repo. write_pkgcore_lookup_configs(self.install_purelib, target) # Generate ebd function lists used for environment filtering if # they don't exist (release tarballs contain pre-generated files). if not os.path.exists( os.path.join(pkgdist.REPODIR, 'ebd', 'generated')): write_pkgcore_ebd_funclists(root=root, target=os.path.join( target, EBD_INSTALL_OFFSET, 'generated'), scripts_dir=self.install_scripts, python_base=self.install_purelib) write_pkgcore_ebd_eapi_libs(root=root, target=os.path.join( target, EBD_INSTALL_OFFSET, 'generated'), scripts_dir=self.install_scripts, python_base=self.install_purelib)
def main(options, out, err): """Update caches.""" for package in stable_unique(options.packages): if options.verbosity >= 0: out.write(f'updating cache: {package.__name__}') plugin.initialize_cache(package, force=True)
def main(options, out, err): """Update caches.""" for package in lists.stable_unique(options.packages): out.write('Updating cache for %s...' % (package.__name__, )) plugin.initialize_cache(package, force=True)
def main(options, out, err): """Update caches.""" for package in stable_unique(options.packages): out.write('Updating cache for %s...' % (package.__name__,)) plugin.initialize_cache(package, force=True)