Changeset 3648
- Timestamp:
- Feb 16, 2017, 12:39:30 PM (4 years ago)
- Location:
- lliurex-up/trunk/fuentes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
lliurex-up/trunk/fuentes/lliurex-up-cli/usr/sbin/lliurex-upgrade
r3607 r3648 9 9 import datetime 10 10 import time 11 import signal 12 11 13 12 14 class LliurexUpCli(object): … … 17 19 self.log(log_msg) 18 20 self.checkInitialFlavour() 21 19 22 20 23 def checkInitialFlavour(self): … … 90 93 if is_mirror_updated !=None: 91 94 is_mirror_running=self.lliurexcore.lliurexMirrorIsRunning() 92 93 if is_mirror_updated['action']=='update': 94 log_msg="Checking mirror. Is mirror update: False" 95 self.log(log_msg) 96 if not is_mirror_running: 97 response=raw_input(' [LLiurex-up]: Do you want update mirror (yes/no): ').lower() 98 if response.startswith('y'): 99 log_msg="Update lliurex-mirror: Yes" 100 self.log(log_msg) 101 print(" [Lliurex-up]: Updating mirror. Wait a moment please") 102 command='lliurex-mirror update llx16' 103 os.system(command) 104 else: 105 log_msg="Update lliurex-mirror: No" 106 self.log(log_msg) 107 print(" [Lliurex-up]: Mirror update.Nothing to do") 95 if is_mirror_running: 96 print(" [Lliurex-up]: Updating mirror. Wait a moment please") 97 command='lliurex-mirror update llx16' 98 os.system(command) 99 100 else: 101 if is_mirror_updated['action']=='update': 102 log_msg="Checking mirror. Is mirror update: False" 103 self.log(log_msg) 104 if not is_mirror_running: 105 response=raw_input(' [LLiurex-up]: Do you want update mirror (yes/no): ').lower() 106 if response.startswith('y'): 107 log_msg="Update lliurex-mirror: Yes" 108 self.log(log_msg) 109 print(" [Lliurex-up]: Updating mirror. Wait a moment please") 110 command='lliurex-mirror update llx16' 111 os.system(command) 112 else: 113 log_msg="Update lliurex-mirror: No" 114 self.log(log_msg) 115 print(" [Lliurex-up]: Mirror update.Nothing to do") 108 116 else: 109 117 log_msg="Checking mirror. Is mirror update: None" … … 275 283 f=open(log_file,"a+") 276 284 f.write(msg + '\n') 277 f.close() 278 285 f.close() 286 287 279 288 def main(self,mode): 280 289 … … 306 315 print(" [Lliurex-up]: Number of packages to update: " + str(len(self.packages)) + " (" + str(self.newpackages) + " news)" ) 307 316 308 response=raw_input(' [LLiurex-up]: Do you want to u dpate the system(yes/no)): ').lower()317 response=raw_input(' [LLiurex-up]: Do you want to update the system (yes/no)): ').lower() 309 318 if response.startswith('y'): 310 319 self.preActionsScript() -
lliurex-up/trunk/fuentes/lliurex-up/usr/share/lliurex-up/lliurex-up.py
r3607 r3648 250 250 self.vterminal.set_font(font_terminal) 251 251 self.vterminal.set_scrollback_lines(-1) 252 self.vterminal.set_sensitive(False) 252 253 self.terminal_scrolled.add(self.vterminal) 253 254
Note: See TracChangeset
for help on using the changeset viewer.