Author: mvidner Date: Tue Jun 19 10:46:23 2007 New Revision: 5782 URL: http://svn.opensuse.org/viewcvs/zypp?rev=5782&view=rev Log: Fixed indentation (http://en.opensuse.org/Tab_Width) Modified: trunk/zypper/src/zypper-callbacks.cc Modified: trunk/zypper/src/zypper-callbacks.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/zypper/src/zypper-callbacks.cc?rev=5782&r1=5781&r2=5782&view=diff ============================================================================== --- trunk/zypper/src/zypper-callbacks.cc (original) +++ trunk/zypper/src/zypper-callbacks.cc Tue Jun 19 10:46:23 2007 @@ -22,32 +22,32 @@ int read_action_ari (int default_action) { cout << _("(A)bort, (R)etry, (I)gnore?") << " "; // don't translate letters in parentheses!! - // non-interactive mode - if (gSettings.non_interactive) { - // abort if no default has been specified - if (default_action == -1) { - // print the answer for convenience - cout << 'a' << endl; - - return 0; - } - // return the specified default - else { - char c; - switch (default_action) { - case 0: c = 'a'; break; - case 1: c = 'r'; break; - case 2: c = 'i'; break; - default: c = '?'; - } - // print the answer for conveniecne - cout << c << endl; - - return default_action; - } - } + // non-interactive mode + if (gSettings.non_interactive) { + // abort if no default has been specified + if (default_action == -1) { + // print the answer for convenience + cout << 'a' << endl; + + return 0; + } + // return the specified default + else { + char c; + switch (default_action) { + case 0: c = 'a'; break; + case 1: c = 'r'; break; + case 2: c = 'i'; break; + default: c = '?'; + } + // print the answer for conveniecne + cout << c << endl; - // interactive mode, ask user + return default_action; + } + } + + // interactive mode, ask user while (true) { char c; cin >> c; -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org