![](https://seccdn.libravatar.org/avatar/ba30a531854d27405c5e37aae6d3aaad.jpg?s=120&d=mm&r=g)
Author: jkupec Date: Fri Oct 3 18:43:30 2008 New Revision: 11240 URL: http://svn.opensuse.org/viewcvs/zypp?rev=11240&view=rev Log: - fall back to the installed object if no update candidate found 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=11240&r1=11239&r2=11240&view=diff ============================================================================== --- trunk/zypper/src/install.cc (original) +++ trunk/zypper/src/install.cc Fri Oct 3 18:43:30 2008 @@ -305,14 +305,12 @@ theone = *s.availableBegin(); else theone = findUpdateItem(God->pool(), *s.installedBegin()); -#endif + if (!theone) - { - ERR << "the One is missing in " << s << endl; - return; - } - else - DBG << "the One: " << theone << endl; + theone = *s.installedBegin(); +#endif + + DBG << "the One: " << theone << endl; //! \todo handle multiple installed case bool theoneinstalled; // is the One installed ? -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org