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

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

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

Revision 1580 Revision 1581
36 ## 36 ##
37 # Initialization function for the GLIClientController class 37 # Initialization function for the GLIClientController class
38 # @param configuration=None GLIClientConfiguration object 38 # @param configuration=None GLIClientConfiguration object
39 # @param install_profile=None GLIInstallProfile object 39 # @param install_profile=None GLIInstallProfile object
40 # @param pretend=False Pretend mode. If pretending, no steps will actually be performed 40 # @param pretend=False Pretend mode. If pretending, no steps will actually be performed
41 def __init__(self,install_profile=None,pretend=False,verbose=False): 41 def __init__(self,install_profile=None,pretend=False,verbose=True):
42 Thread.__init__(self) 42 Thread.__init__(self)
43 43
44 self.set_install_profile(install_profile) 44 self.set_install_profile(install_profile)
45 self._install_event = Event() 45 self._install_event = Event()
46 self._notification_queue = Queue.Queue(50) 46 self._notification_queue = Queue.Queue(50)
93 } 93 }
94 subarches = { 'i386': 'x86', 'i486': 'x86', 'i586': 'x86', 'i686': 'x86', 'x86_64': 'amd64', 'parisc': 'hppa' } 94 subarches = { 'i386': 'x86', 'i486': 'x86', 'i586': 'x86', 'i686': 'x86', 'x86_64': 'amd64', 'parisc': 'hppa' }
95 arch = platform.machine() 95 arch = platform.machine()
96 if arch in subarches: 96 if arch in subarches:
97 arch = subarches[arch] 97 arch = subarches[arch]
98 98 if self._verbose: self._logger.log("DEBUG: arch is %s" % arch)
99 if arch not in templates.keys(): 99 if arch not in templates.keys():
100 self.addNotification("exception", GLIException("UnsupportedArchitectureError", "fatal", "run", arch + ' is not supported by the Gentoo Linux Installer!')) 100 self.addNotification("exception", GLIException("UnsupportedArchitectureError", "fatal", "run", arch + ' is not supported by the Gentoo Linux Installer!'))
101 101
102 try: 102 try:
103 template = __import__(TEMPLATE_DIR + '/' + templates[arch]) 103 template = __import__(TEMPLATE_DIR + '/' + templates[arch])

Legend:
Removed from v.1580  
changed lines
  Added in v.1581

  ViewVC Help
Powered by ViewVC 1.1.20