Author: jkupec Date: Mon Nov 24 20:43:28 2008 New Revision: 11795 URL: http://svn.opensuse.org/viewcvs/zypp?rev=11795&view=rev Log: - fixed segfault in 'info' when looking for package to show (bnc #448247) Modified: trunk/zypper/src/info.cc Modified: trunk/zypper/src/info.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/zypper/src/info.cc?rev=11795&r1=11794&r2=11795&view=diff ============================================================================== --- trunk/zypper/src/info.cc (original) +++ trunk/zypper/src/info.cc Mon Nov 24 20:43:28 2008 @@ -155,14 +155,7 @@ #if USE_THE_ONE PoolItem theone = s.theObj(); #else - PoolItem theone; - if (s.installedEmpty()) - theone = s.availableBegin() != s.availableEnd() ? - findUpdateItem(God->pool(), *s.availableBegin()) : PoolItem(); - else - theone = findUpdateItem(God->pool(), *s.installedBegin()); - if (!theone) - theone = *s.installedBegin(); + PoolItem theone = findTheBest(God->pool(), s); #endif cout << (zypper.globalOpts().is_rug_compatible ? _("Catalog: ") : _("Repository: ")) -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org