diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2013-09-08 18:30:56 +0400 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2013-09-08 18:30:56 +0400 |
commit | f4b97d0af96c584a9b39f8492cfce185ffd993ae (patch) | |
tree | 8152cd1f3480d82ee5c18247dc027fa32e2bd5f0 /install | |
parent | 6cae35f2f087a33e17e55857b2f08346b6992bfd (diff) | |
download | live-f4b97d0af96c584a9b39f8492cfce185ffd993ae.tar.gz |
python-apt is bullshit
Diffstat (limited to 'install')
-rwxr-xr-x | install | 27 |
1 files changed, 2 insertions, 25 deletions
@@ -26,8 +26,6 @@ import sys import math import shutil import traceback -import apt -import apt_pkg # Snack screen screen = None @@ -774,29 +772,7 @@ def install_minimal(): call(['zfs', 'rollback', '-r', bootenv + '@empty']) def install_profile(): - logfile = rootdir + '/root/apt-get.log' - apt_pkg.config.set('Dpkg::Chroot-Directory', rootdir) - cache = apt.Cache(rootdir=rootdir) - - update_progress = DownloadProgress(screen, title='Please wait', text='Updating APT cache ...') - cache.update(update_progress) - - open_progress = OpenProgress(screen, title='Please wait', text='Reading package list ...') - cache.open(open_progress) - - download_progress = DownloadProgress(screen, title='Downloading packages', text='Please wait ...') - install_progress = InstallProgress(screen, - title='Installing packages', text='Please wait ...', - logfile=logfile) - - for p in profiles[profile]['packages'].split(): - # Skip if no such package - try: - cache[p].mark_install() - except: - pass - - cache.commit(download_progress, install_progress) + pass def umount_in_bootenv(): @@ -1152,6 +1128,7 @@ def goodbye(): buttons=['Reboot']) screen = SnackScreen() + while True: try: screen.pushHelpLine('F2 - switch to console, F1 - switch back to the installer') |