/[gli]/branches/overhaul/src/GLIArchitectureTemplate.py
Gentoo

Diff of /branches/overhaul/src/GLIArchitectureTemplate.py

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

Revision 795 Revision 801
1""" 1"""
2Gentoo Linux Installer 2Gentoo Linux Installer
3 3
4$Id: GLIArchitectureTemplate.py,v 1.171 2005/08/10 17:00:07 agaffney Exp $ 4$Id: GLIArchitectureTemplate.py,v 1.172 2005/08/14 18:03:50 codeman 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.
29 # better to store it in a variable than to call 29 # better to store it in a variable than to call
30 # this method 100000 times. 30 # this method 100000 times.
31 self._chroot_dir = self._client_configuration.get_root_mount_point() 31 self._chroot_dir = self._client_configuration.get_root_mount_point()
32 self._logger = GLILogger.Logger(self._client_configuration.get_log_file()) 32 self._logger = GLILogger.Logger(self._client_configuration.get_log_file())
33 self._compile_logfile = "/tmp/compile_output.log" 33 self._compile_logfile = "/tmp/compile_output.log"
34
35 # This will cleanup the logfile if it's a dead link (pointing
36 # to the chroot logfile when partitions aren't mounted, else
37 # no action needs to be taken
38
39 if os.path.islink(self._compile_logfile) and not os.path.exists(self._compile_logfile):
40 os.unlink(self._compile_logfile)
34 41
35 # cache the list of successfully mounted swap devices here 42 # cache the list of successfully mounted swap devices here
36 self._swap_devices = [] 43 self._swap_devices = []
37 44
38 # These must be filled in by the subclass. _steps is a list of 45 # These must be filled in by the subclass. _steps is a list of

Legend:
Removed from v.795  
changed lines
  Added in v.801

  ViewVC Help
Powered by ViewVC 1.1.20