Author: jkupec Date: Tue Mar 25 15:42:06 2008 New Revision: 9269 URL: http://svn.opensuse.org/viewcvs/zypp?rev=9269&view=rev Log: - fixed dependency problems not shown in non-interactive mode (bnc #373125) Modified: trunk/zypper/src/zypper-misc.cc Modified: trunk/zypper/src/zypper-misc.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/zypper/src/zypper-misc.cc?rev=9269&r1=9268&r2=9269&view=diff ============================================================================== --- trunk/zypper/src/zypper-misc.cc (original) +++ trunk/zypper/src/zypper-misc.cc Tue Mar 25 15:42:06 2008 @@ -472,9 +472,6 @@ stm << indent(det, 2) << endl; } - if (zypper.globalOpts().non_interactive) - return false; - unsigned int problem_count = God->resolver()->problems().size(); int reply; @@ -526,7 +523,14 @@ zypper.out().prompt(PROMPT_DEP_RESOLVE, stm.str(), popts); //string reply = get_prompt_reply(promptstr, popts); \TODO - string reply_s = str::getline (cin, zypp::str::TRIM); + string reply_s; + if (zypper.globalOpts().non_interactive) //! \todo do this in the prompt() call + { + reply_s = "c"; + cout << reply_s << endl; + } + else + reply_s = str::getline (cin, zypp::str::TRIM); if (! cin.good()) { zypper.out().error("cin: " + cin.rdstate()); -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org