Author: mlandres Date: Thu Sep 18 10:24:47 2008 New Revision: 11090 URL: http://svn.opensuse.org/viewcvs/zypp?rev=11090&view=rev Log: deprecare Product::type, use isTargetDistribution instead Modified: trunk/libzypp/package/libzypp.changes trunk/libzypp/zypp/Product.h Modified: trunk/libzypp/package/libzypp.changes URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/package/libzypp.changes?rev=11090&r1=11089&r2=11090&view=diff ============================================================================== --- trunk/libzypp/package/libzypp.changes (original) +++ trunk/libzypp/package/libzypp.changes Thu Sep 18 10:24:47 2008 @@ -2,7 +2,7 @@ Thu Sep 18 09:57:49 CEST 2008 - ma@suse.de - Add Product::isTargetDistribution to identify the systems installed - baseproduct. + baseproduct. This should replace tests for Product::type is "base". - revision 11089 ------------------------------------------------------------------- Modified: trunk/libzypp/zypp/Product.h URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/Product.h?rev=11090&r1=11089&r2=11090&view=diff ============================================================================== --- trunk/libzypp/zypp/Product.h (original) +++ trunk/libzypp/zypp/Product.h Thu Sep 18 10:24:47 2008 @@ -63,8 +63,10 @@ * Well, in an ideal world there is only one base product. * It's the installed product denoted by a symlink in * \c /etc/products.d. + * \deprecated Use isTargetDistribution to test for the installed base product, + * other wise type is empty for almost all products. */ - std::string type() const; + std::string type() const ZYPP_DEPRECATED; /** Update repository indicator string. * Repositories providing updates/patches for this product -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org