Author: schubi2 Date: Wed Aug 8 12:40:20 2007 New Revision: 6516 URL: http://svn.opensuse.org/viewcvs/zypp?rev=6516&view=rev Log: logging NEEDED_BY on the correct place Modified: trunk/libzypp/zypp/solver/detail/QueueItemInstall.cc Modified: trunk/libzypp/zypp/solver/detail/QueueItemInstall.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/solver/detail/QueueItemInstall.cc?rev=6516&r1=6515&r2=6516&view=diff ============================================================================== --- trunk/libzypp/zypp/solver/detail/QueueItemInstall.cc (original) +++ trunk/libzypp/zypp/solver/detail/QueueItemInstall.cc Wed Aug 8 12:40:20 2007 @@ -283,6 +283,19 @@ _XDEBUG( "QueueItemInstall::process(" << *this << "):" << status); + /* Log which item need this install */ + + if (_needed_by) { + + ResolverInfoNeededBy_Ptr info; + + info = new ResolverInfoNeededBy (_item); + info->addRelatedPoolItem (_needed_by); + info->setCapability (_dep_satisfied_by_this_install, _soft?Dep::RECOMMENDS:Dep::REQUIRES); + info->setInitialInstallation (true); + context->addInfo (info); + } + /* If we are trying to upgrade item A with item B and they both have the same version number, do nothing. This shouldn't happen in general with zypp, but can come up with the installer & autopull. */ @@ -375,18 +388,6 @@ } - /* Log which item need this install */ - - if (_needed_by) { - - ResolverInfoNeededBy_Ptr info; - - info = new ResolverInfoNeededBy (_item); - info->addRelatedPoolItem (_needed_by); - info->setCapability (_dep_satisfied_by_this_install, _soft?Dep::RECOMMENDS:Dep::REQUIRES); - info->setInitialInstallation (true); - context->addInfo (info); - } // we're done if this isn't currently uninstalled or incomplete -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org