Author: dmacvicar Date: Wed Feb 27 10:18:22 2008 New Revision: 8925 URL: http://svn.opensuse.org/viewcvs/zypp?rev=8925&view=rev Log: - temporaty way to get the installed status for now Modified: trunk/zypper/src/zypper-search.h Modified: trunk/zypper/src/zypper-search.h URL: http://svn.opensuse.org/viewcvs/zypp/trunk/zypper/src/zypper-search.h?rev=8925&r1=8924&r2=8925&view=diff ============================================================================== --- trunk/zypper/src/zypper-search.h (original) +++ trunk/zypper/src/zypper-search.h Wed Feb 27 10:18:22 2008 @@ -17,6 +17,7 @@ #include "zypp/ZYpp.h" #include "zypp/PoolQuery.h" #include "zypp/ResObject.h" +#include "zypp/PoolItem.h" #include "zypper.h" #include "zypper-main.h" @@ -68,7 +69,10 @@ TableRow row; // add other fields to the result table - row << "i" + + zypp::PoolItem pi( zypp::ResPool::instance().find( item->satSolvable() ) ); + + row << ( pi.status().isInstalled() ? "i" : " " ) << item->repository().info().name() // TODO what about rug's Bundle? << (_gopts.is_rug_compatible ? -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org