Author: jkupec Date: Thu Apr 17 15:08:43 2008 New Revision: 9680 URL: http://svn.opensuse.org/viewcvs/zypp?rev=9680&view=rev Log: - honor --{un}installed-only in 'products' Modified: trunk/zypper/src/zypper-search.cc Modified: trunk/zypper/src/zypper-search.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/zypper/src/zypper-search.cc?rev=9680&r1=9679&r2=9680&view=diff ============================================================================== --- trunk/zypper/src/zypper-search.cc (original) +++ trunk/zypper/src/zypper-search.cc Thu Apr 17 15:08:43 2008 @@ -232,7 +232,18 @@ Product::constPtr product = asKind<Product>(it->resolvable()); TableRow tr; - tr << (it->isSatisfied() ? "i" : ""); + if (it->isSatisfied()) + { + if (notinst_only) + continue; + tr << "i"; + } + else + { + if (installed_only) + continue; + tr << ""; + } tr << product->name () << product->edition().asString(); tr << product->type(); tbl << tr; -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org