Changeset 4637
- Timestamp:
- May 9, 2017, 1:50:41 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lliurex-up/trunk/fuentes/lliurex-up-cli/usr/sbin/lliurex-upgrade
r4563 r4637 440 440 self.errorfinalmetapackage=True 441 441 log_msg="Install of metapackage. Error:%s"%e 442 443 self.log(log_msg) 442 444 443 445 … … 448 450 self.errorfinalmetapackage=True 449 451 log_msg="Final check metapackage. Error:%s"%e 450 451 self.log(log_msg) 452 self.log(log_msg) 452 453 453 454 #def checkingFinalFlavourToInstall … … 455 456 def checkFinalUpgrade(self): 456 457 458 457 459 print(" [Lliurex-up]: Checking Dist-upgrade ") 458 460 error=self.lliurexcore.checkErrorDistUpgrade() … … 461 463 print(" [Lliurex-up]: The updated process is endend with errors") 462 464 log_msg="Dist-upgrade process ending with errors" 465 self.distUpgrade_OK=False 463 466 464 467 else: 465 468 print(" [Lliurex-up]: The system is now update") 466 469 log_msg="Dist-upgrade process ending OK" 470 self.distUpgrade_OK=True 471 467 472 468 473 self.log(log_msg) … … 472 477 def handler_signal(self,signal,frame): 473 478 474 print("\n [Lliurex-up]: Cancel process with Ctr +csignal")475 log_msg="Cancel process with Ctr +csignal"479 print("\n [Lliurex-up]: Cancel process with Ctrl+C signal") 480 log_msg="Cancel process with Ctrl+C signal" 476 481 self.log(log_msg) 477 482 self.lliurexcore.cleanEnvironment() 478 483 self.lliurexcore.cleanLliurexUpLock() 479 sys.exit( 1)484 sys.exit(0) 480 485 481 486 #def handler_signal … … 552 557 self.lliurexcore.cleanEnvironment() 553 558 self.lliurexcore.cleanLliurexUpLock() 559 if self.distUpgrade_OK: 560 return 0 561 else: 562 return 1 554 563 555 564
Note: See TracChangeset
for help on using the changeset viewer.