Author: jkupec Date: Thu Oct 2 14:42:52 2008 New Revision: 11226 URL: http://svn.opensuse.org/viewcvs/zypp?rev=11226&view=rev Log: - exit if package not found and in non-interactive mode (bnc #403216) Modified: trunk/zypper/src/install.cc Modified: trunk/zypper/src/install.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/zypper/src/install.cc?rev=11226&r1=11225&r2=11226&view=diff ============================================================================== --- trunk/zypper/src/install.cc (original) +++ trunk/zypper/src/install.cc Thu Oct 2 14:42:52 2008 @@ -40,6 +40,8 @@ str::form(_("'%s' not found"), name.c_str())); WAR << str::form("'%s' not found", name.c_str()) << endl; zypper.setExitCode(ZYPPER_EXIT_INF_CAP_NOT_FOUND); + if (zypper.globalOpts().non_interactive) + ZYPP_THROW(ExitRequestException()); return; } @@ -523,6 +525,8 @@ zypper.out().error(str::form(_("'%s' not found."), str.c_str())); WAR << str::form("'%s' not found", str.c_str()) << endl; zypper.setExitCode(ZYPPER_EXIT_INF_CAP_NOT_FOUND); + if (zypper.globalOpts().non_interactive) + ZYPP_THROW(ExitRequestException()); continue; } -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org