/[gli]/trunk/src/GLIArchitectureTemplate.py
Gentoo

Diff of /trunk/src/GLIArchitectureTemplate.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1182 Revision 1183
3# This source code is distributed under the terms of version 2 of the GNU 3# This source code is distributed under the terms of version 2 of the GNU
4# General Public License as published by the Free Software Foundation, a copy 4# General Public License as published by the Free Software Foundation, a copy
5# of which can be found in the main directory of this project. 5# of which can be found in the main directory of this project.
6Gentoo Linux Installer 6Gentoo Linux Installer
7 7
8$Id: GLIArchitectureTemplate.py,v 1.240 2005/12/23 22:32:57 agaffney Exp $ 8$Id: GLIArchitectureTemplate.py,v 1.241 2005/12/23 22:39:29 agaffney Exp $
9 9
10The ArchitectureTemplate is largely meant to be an abstract class and an 10The ArchitectureTemplate is largely meant to be an abstract class and an
11interface (yes, it is both at the same time!). The purpose of this is to create 11interface (yes, it is both at the same time!). The purpose of this is to create
12subclasses that populate all the methods with working methods for that architecture. 12subclasses that populate all the methods with working methods for that architecture.
13The only definitions that are filled in here are architecture independent. 13The only definitions that are filled in here are architecture independent.
475 # Installs a list of packages specified in the profile. Will install any extra software! 475 # Installs a list of packages specified in the profile. Will install any extra software!
476 # In the future this function will lead to better things. It may even wipe your ass for you. 476 # In the future this function will lead to better things. It may even wipe your ass for you.
477 def install_packages(self): 477 def install_packages(self):
478 installpackages = self._install_profile.get_install_packages() 478 installpackages = self._install_profile.get_install_packages()
479 if installpackages: 479 if installpackages:
480 pkglist = self._portage.get_deps(installpackages, self._install_profile.get_grp_install()) 480 pkglist = self._portage.get_deps(installpackages)
481 if self._install_profile.get_grp_install(): 481 if self._install_profile.get_grp_install():
482 for i, pkg in enumerate(pkglist): 482 for i, pkg in enumerate(pkglist):
483 self.notify_frontend("progress", (float(i) / len(pkglist), "Copying " + package + " to chroot")) 483 self.notify_frontend("progress", (float(i) / len(pkglist), "Copying " + package + " to chroot"))
484 try: 484 try:
485 self._portage.copy_pkg_to_chroot(pkg) 485 self._portage.copy_pkg_to_chroot(pkg)

Legend:
Removed from v.1182  
changed lines
  Added in v.1183

  ViewVC Help
Powered by ViewVC 1.1.20