From 2de7309b88b3ab10f35b104a497fb852506c58ef Mon Sep 17 00:00:00 2001 From: Jan Kupec Date: Tue, 25 Mar 2008 14:42:06 +0000 Subject: [PATCH] - fixed dependency problems not shown in non-interactive mode (bnc #373125) --- src/zypper-misc.cc | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/zypper-misc.cc b/src/zypper-misc.cc index ad5ca86..b05cd39 100644 --- a/src/zypper-misc.cc +++ b/src/zypper-misc.cc @@ -472,9 +472,6 @@ static tribool show_problem (Zypper & zypper, 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 @@ static tribool show_problem (Zypper & zypper, 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()); -- 2.7.4