View | Details | Raw Unified | Return to bug 457167
Collapse All | Expand All

(-)library/desktop/src/menu.ycp (-1 / +4 lines)
Lines 25-30 Link Here
25
boolean root = false;
25
boolean root = false;
26
string restart_file    = Directory::vardir + "/restart_menu";
26
string restart_file    = Directory::vardir + "/restart_menu";
27
// file existing if yast2-online-update wants to be restarted
28
string restart_you     = Directory::vardir + "/selected_patches.ycp";
27
/**
29
/**
28
 */
30
 */
Lines 121-127 Link Here
121
       }
123
       }
122
       y2milestone ("Got %1 from %2", ret, cmd);
124
       y2milestone ("Got %1 from %2", ret, cmd);
123
       if ((function == "online_update" && ret == -42) )
125
       if ((function == "online_update" && ret != `cancel && ret != `abort &&
126
           FileUtils::Exists (restart_you))
124
       {
127
       {
125
           y2milestone ("yast needs to be restarted - exiting...");
128
           y2milestone ("yast needs to be restarted - exiting...");
126
           SCR::Execute (.target.bash, sformat ("touch %1", restart_file));
129
           SCR::Execute (.target.bash, sformat ("touch %1", restart_file));

Return to bug 457167