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

Diff of /trunk/src/GLIArchitectureTemplate.py

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

Revision 647 Revision 648
1""" 1"""
2Gentoo Linux Installer 2Gentoo Linux Installer
3 3
4$Id: GLIArchitectureTemplate.py,v 1.122 2005/06/11 07:23:41 agaffney Exp $ 4$Id: GLIArchitectureTemplate.py,v 1.123 2005/06/11 07:51:55 robbat2 Exp $
5Copyright 2005 Gentoo Technologies Inc. 5Copyright 2005 Gentoo Technologies Inc.
6 6
7The ArchitectureTemplate is largely meant to be an abstract class and an 7The ArchitectureTemplate is largely meant to be an abstract class and an
8interface (yes, it is both at the same time!). The purpose of this is to create 8interface (yes, it is both at the same time!). The purpose of this is to create
9subclasses that populate all the methods with working methods for that architecture. 9subclasses that populate all the methods with working methods for that architecture.
129 # @param binary_only=False defines whether to only allow binary emerges. 129 # @param binary_only=False defines whether to only allow binary emerges.
130 def _emerge(self, package, binary=False, binary_only=False): 130 def _emerge(self, package, binary=False, binary_only=False):
131 #Error checking of this function is to be handled by the parent function. 131 #Error checking of this function is to be handled by the parent function.
132 if self._install_profile.get_grp_install(): 132 if self._install_profile.get_grp_install():
133 self._quickpkg_deps(package) 133 self._quickpkg_deps(package)
134 return GLIUtility.spawn("NOCOLOR=yes emerge -k " + package, display_on_tty8=True, chroot=self._chroot_dir, logfile=self._compile_logfile, append_log=True) 134 cmd="NOCOLOR=yes emerge -k " + package
135 else: 135 else:
136 if binary_only: 136 if binary_only:
137 return GLIUtility.spawn("NOCOLOR=yes emerge -K " + package, display_on_tty8=True, chroot=self._chroot_dir, logfile=self._compile_logfile, append_log=True) 137 cmd="NOCOLOR=yes emerge -K " + package
138 elif binary: 138 elif binary:
139 return GLIUtility.spawn("NOCOLOR=yes emerge -k " + package, display_on_tty8=True, chroot=self._chroot_dir, logfile=self._compile_logfile, append_log=True) 139 cmd="NOCOLOR=yes emerge -k " + package
140 else: 140 else:
141 cmd="NOCOLOR=yes emerge " + package
142
143 self._logger.log("Calling emerge: "+cmd)
141 return GLIUtility.spawn("NOCOLOR=yes emerge " + package, display_on_tty8=True, chroot=self._chroot_dir, logfile=self._compile_logfile, append_log=True) 144 return GLIUtility.spawn(cmd, display_on_tty8=True, chroot=self._chroot_dir, logfile=self._compile_logfile, append_log=True)
142 145
143 ## 146 ##
144 # Private Function. Will edit a config file and insert a value or two overwriting the previous value 147 # Private Function. Will edit a config file and insert a value or two overwriting the previous value
145 # (actually it only just comments out the old one) 148 # (actually it only just comments out the old one)
146 # @param filename file to be edited 149 # @param filename file to be edited

Legend:
Removed from v.647  
changed lines
  Added in v.648

  ViewVC Help
Powered by ViewVC 1.1.20