[zypp-commit] r9440 - in /trunk/zypper/src: zypper-search.h zypper.cc
Author: jkupec Date: Mon Apr 7 21:27:15 2008 New Revision: 9440 URL: http://svn.opensuse.org/viewcvs/zypp?rev=9440&view=rev Log: - comment + indent Modified: trunk/zypper/src/zypper-search.h trunk/zypper/src/zypper.cc Modified: trunk/zypper/src/zypper-search.h URL: http://svn.opensuse.org/viewcvs/zypp/trunk/zypper/src/zypper-search.h?rev=9440&r1=9439&r2=9440&view=diff ============================================================================== --- trunk/zypper/src/zypper-search.h (original) +++ trunk/zypper/src/zypper-search.h Mon Apr 7 21:27:15 2008 @@ -53,24 +53,24 @@ } bool operator()(const zypp::sat::Solvable & solv) const - { - TableRow row; + { + TableRow row; - // add other fields to the result table + // add other fields to the result table - zypp::PoolItem pi( zypp::ResPool::instance().find( solv ) ); + zypp::PoolItem pi( zypp::ResPool::instance().find( solv ) ); - row << ( pi.status().isInstalled() ? "i" : " " ) - << pi->repository().info().name() - // TODO what about rug's Bundle? - << (_gopts.is_rug_compatible ? - "" : kind_to_string_localized(pi->kind(), 1)) - << pi->name() - << pi->edition().asString() - << pi->arch().asString(); - *_table << row; - return true; - } + row << ( pi.status().isInstalled() ? "i" : " " ) + << pi->repository().info().name() + // TODO what about rug's Bundle? + << (_gopts.is_rug_compatible ? + "" : kind_to_string_localized(pi->kind(), 1)) + << pi->name() + << pi->edition().asString() + << pi->arch().asString(); + *_table << row; + return true; + } }; #endif /*ZYPPERSEARCH_H_*/ Modified: trunk/zypper/src/zypper.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/zypper/src/zypper.cc?rev=9440&r1=9439&r2=9440&view=diff ============================================================================== --- trunk/zypper/src/zypper.cc (original) +++ trunk/zypper/src/zypper.cc Mon Apr 7 21:27:15 2008 @@ -2036,8 +2036,8 @@ if (globalOpts().disable_system_resolvables || copts.count("uninstalled-only")) query.setUninstalledOnly(); - - if (copts.count("installed-only")) query.setInstalledOnly(); + if (copts.count("installed-only")) + query.setInstalledOnly(); //if (copts.count("match-any")) options.setMatchAny(); //if (copts.count("match-words")) options.setMatchWords(); if (copts.count("match-exact")) @@ -2088,6 +2088,7 @@ query.addAttribute(sat::SolvAttr::summary); query.addAttribute(sat::SolvAttr::description); } + //query.setMatchGlob(); \todo switch this on if the input contains * or ? init_target(*this); -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org
participants (1)
-
jkupec@svn.opensuse.org