def rebuild_filesdb(): for pkg in list_installed(): ctx.ui.info(_('Adding \'%s\' to db... ') % pkg, noln=True) files = installdb.get_files(pkg) filesdb.add_files(pkg, files) ctx.ui.info(_('OK.'))