Mailinglist Archive: zypp-commit (266 mails)

< Previous Next >
[zypp-commit] r11795 - /trunk/zypper/src/info.cc
  • From: jkupec@xxxxxxxxxxxxxxxx
  • Date: Mon, 24 Nov 2008 19:43:28 -0000
  • Message-id: <20081124194328.95603FB887@xxxxxxxxxxxxxxxx>
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@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages