Changeset 38318 for titan/titan


Ignore:
Timestamp:
08/24/16 14:43:26 (8 years ago)
Author:
obi
Message:

fix last commit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/system_update.h

    r37047 r38318  
    55{
    66        debug(50, "(start) mode=%d", mode);
    7         int rcret = 0;
     7        int rcret = 0, ret = 0;
    88
    99        status.hangtime = 99999;
     
    246246                                        debug(40, "update started cmd: %s", cmd);
    247247                                        status.sec = 0; //deactivate spinner
    248                                        
    249                                         system(cmd);
    250                                         //should only reached if system fails
    251                                         textbox(_("Message"), _("Can't start system update\nSyntax Error on updatefile"), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 800, 200, 0, 0);
    252                                         debug(40, "update error cmd: %s", cmd);
     248
     249                                        ret = checkshutdown(1);
     250                                        if(ret == 0)
     251                                        {
     252                                                system(cmd);
     253                                                //should only reached if system fails
     254                                                textbox(_("Message"), _("Can't start system update\nSyntax Error on updatefile"), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 800, 200, 0, 0);
     255                                                debug(40, "update error cmd: %s", cmd);
     256                                        }
    253257                                        drawscreen(systemupdate, 0, 0);
    254258                                        getfilelist(systemupdate, filelistpath, filelist, node->filepath, node->filemask, 0, NULL);
Note: See TracChangeset for help on using the changeset viewer.