def doRestorePlugins1(self): print '[RestoreWizard] Stage 3: Check Kernel' if fileExists('/tmp/backupkernelversion') and fileExists( '/tmp/backupimageversion'): imageversion = file('/tmp/backupimageversion').read() kernelversion = file('/tmp/backupkernelversion').read() print '[RestoreWizard] Backup Image:', imageversion print '[RestoreWizard] Current Image:', about.getVersionString() print '[RestoreWizard] Backup Kernel:', kernelversion print '[RestoreWizard] Current Kernel:', about.getKernelVersionString( ) if kernelversion == about.getKernelVersionString() and ( imageversion == about.getVersionString() or isRestorablePlugins(imageversion)): print '[RestoreWizard] Stage 3: Kernel and image ver OK' self.doRestorePluginsTest() else: print '[RestoreWizard] Stage 3: Kernel or image ver Differant' if self.didSettingsRestore: self.NextStep = 'reboot' else: self.NextStep = 'noplugins' self.buildListRef.close(True) else: print '[RestoreWizard] Stage 3: No Kernel to check' if self.didSettingsRestore: self.NextStep = 'reboot' else: self.NextStep = 'noplugins' self.buildListRef.close(True)
def doRestorePlugins1(self): print '[RestoreWizard] Stage 3: Check Kernel' if fileExists('/tmp/backupkernelversion') and fileExists('/tmp/backupimageversion'): imageversion = file('/tmp/backupimageversion').read() kernelversion = file('/tmp/backupkernelversion').read() print '[RestoreWizard] Backup Image:', imageversion print '[RestoreWizard] Current Image:', about.getVersionString() print '[RestoreWizard] Backup Kernel:', kernelversion print '[RestoreWizard] Current Kernel:', about.getKernelVersionString() if kernelversion == about.getKernelVersionString() and (imageversion == about.getVersionString() or isRestorablePlugins(imageversion)): print '[RestoreWizard] Stage 3: Kernel and image ver OK' self.doRestorePluginsTest() else: print '[RestoreWizard] Stage 3: Kernel or image ver Differant' if self.didSettingsRestore: self.NextStep = 'reboot' else: self.NextStep = 'noplugins' self.buildListRef.close(True) else: print '[RestoreWizard] Stage 3: No Kernel to check' if self.didSettingsRestore: self.NextStep = 'reboot' else: self.NextStep = 'noplugins' self.buildListRef.close(True)