diff options
Diffstat (limited to 'gentoo')
-rw-r--r-- | gentoo/utils.py | 98 |
1 files changed, 0 insertions, 98 deletions
diff --git a/gentoo/utils.py b/gentoo/utils.py index 8f04dc1..7548d51 100644 --- a/gentoo/utils.py +++ b/gentoo/utils.py @@ -749,11 +749,6 @@ class GentooInstall: def env_update(self): self.spawn_chroot("env-update &> /dev/null") - #def _get_entropy_webservice(self): - # factory = self._entropy.WebServices() - # webserv = factory.new(REPO_NAME) - # return webserv - def emit_install_done(self): # user installed Gentoo, w00hooh! pass @@ -763,9 +758,6 @@ class GentooInstall: This function copies the stage3 into self._root """ - # We don't remove stuff from the stage3 - #if not os.getenv("GENTOO_DISABLE_PKG_REMOVAL"): - # self._setup_packages_to_remove() action = _("System Installation") copy_update_interval = 10 @@ -858,14 +850,6 @@ class GentooInstall: if currentfile.startswith("/dev/"): continue - #try: - # if file is in the ignore list - # if self._files_db.isFileAvailable( - # currentfile.decode('raw_unicode_escape')): - # continue - #except: - # import traceback - # traceback.print_exc() tofile = self._root + currentfile st_info = os.lstat(fromfile) @@ -886,88 +870,6 @@ class GentooInstall: self._progress.set_fraction(1) - #self._change_entropy_chroot(self._root) - # doing here, because client_repo should point to self._root chroot - #client_repo = self._entropy.installed_repository() - # NOT Removing Unwanted Packages - #if self._package_identifiers_to_remove: - - # this makes packages removal much faster - # client_repo.createAllIndexes() - - # total_counter = len(self._package_identifiers_to_remove) - # current_counter = 0 - # self._progress.set_fraction(current_counter) - # self._progress.set_text(_("Cleaning packages")) - # self._entropy.oldcount = [0,total_counter] - - # for pkg_id in self._package_identifiers_to_remove: - # current_counter += 1 - # atom = client_repo.retrieveAtom(pkg_id) - # if not atom: - # continue - - ### XXX needed to speed up removal process - #""" - # category = client_repo.retrieveCategory(pkg_id) - # version = client_repo.retrieveVersion(pkg_id) - # name = client_repo.retrieveName(pkg_id) - # ebuild_path = self._root+"/var/db/pkg/%s/%s-%s" % ( - # category, name, version) - # if os.path.isdir(ebuild_path): - # shutil.rmtree(ebuild_path, True) - #""" - ### XXX - - # self.remove_package(None, match = (pkg_id,0), silent = True) - # frac = float(current_counter)/total_counter - # self._progress.set_fraction(frac) - # self._progress.set_text("%s: %s" % ( - # _("Cleaning package"), atom,)) - # self._entropy.oldcount = [current_counter, total_counter] - - #while 1: - # change = False - # mydirs = set() - #try: - # mydirs = self._files_db.retrieveContent(None, contentType = "dir") - #except TypeError: - # mydirs = set([x for x, y in self._files_db.retrieveContent(None, - # extended = True) if y == "dir"]) - #for mydir in mydirs: - # mytree = os.path.join(self._root,mydir) - # if os.path.isdir(mytree) and not client_repo.isFileAvailable( - # mydir): - # try: - # os.rmdir(mytree) - # change = True - # except OSError: - # pass - #if not change: - # break - - # We don't do that on Gentoo - # list installed packages and setup a package set - #inst_packages = ['%s:%s\n' % (entropy.dep.dep_getkey(atom),slot,) \ - # for idpk, atom, slot, revision in client_repo.listAllPackages( - # get_scope = True, order_by = "atom")] - # perfectly fine w/o self._root - #pkgset_dir = etpConst['confsetsdir'] - #if not os.path.isdir(pkgset_dir): - # os.makedirs(pkgset_dir, 0755) - #set_name = "install_base" - #set_filepath = os.path.join(pkgset_dir, set_name) - #try: - # f = open(set_filepath,"w") - # f.writelines(inst_packages) - # f.flush() - # f.close() - #except (IOError,): - # pass - - #self._change_entropy_chroot() - - self._progress.set_fraction(1) self._progress.set_text(_("Installation complete")) def language_packs_install(self): |