diff options
author | wiktor w brodlo <wiktor@brodlo.net> | 2011-07-21 21:13:40 +0000 |
---|---|---|
committer | wiktor w brodlo <wiktor@brodlo.net> | 2011-07-21 21:13:40 +0000 |
commit | ec00840494484c246b43c423bc1bbb73e0c0febd (patch) | |
tree | 717ccba78c4b4439e94d39fd1bdc9e9f87683e0d | |
parent | gentoo/utils.py: removed some cruft (diff) | |
download | anaconda-ec00840494484c246b43c423bc1bbb73e0c0febd.tar.gz anaconda-ec00840494484c246b43c423bc1bbb73e0c0febd.tar.bz2 anaconda-ec00840494484c246b43c423bc1bbb73e0c0febd.zip |
gentoo/utils.py: break the copying out of live_install for other funcs
-rw-r--r-- | gentoo/utils.py | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/gentoo/utils.py b/gentoo/utils.py index 7548d51..dcf186a 100644 --- a/gentoo/utils.py +++ b/gentoo/utils.py @@ -752,25 +752,18 @@ class GentooInstall: def emit_install_done(self): # user installed Gentoo, w00hooh! pass - - def live_install(self): - """ - This function copies the stage3 into self._root - """ - - - action = _("System Installation") + + def copy_files(self, path_from, path_to): copy_update_interval = 10 copy_update_counter = 9 # get file counters total_files = 0 - image_dir = self._prod_root + image_dir = path_to for z,z,files in os.walk(image_dir): for file in files: total_files += 1 self._progress.set_fraction(0.0) - self._progress.set_text(action) def copy_other(fromfile, tofile): proc = subprocess.Popen(("/bin/cp", "-a", fromfile, tofile), @@ -799,7 +792,7 @@ class GentooInstall: os.symlink(source_link, tofile) current_counter = 0 - currentfile = "/" + currentfile = path_from image_dir_len = len(image_dir) # Create the directory structure # self.InstallFilesToIgnore @@ -870,7 +863,17 @@ class GentooInstall: self._progress.set_fraction(1) + def live_install(self): + """ + This function copies the stage3 into self._root + """ + + action = _("Installing stage3") + + copy_files(self._prod_root, "/") + self._progress.set_text(_("Installation complete")) + def language_packs_install(self): return |