Mailinglist Archive: zypp-commit (185 mails)

< Previous Next >
[zypp-commit] r10862 - in /trunk/libzypp/zypp: ResObject.cc ResObject.h
  • From: mlandres@xxxxxxxxxxxxxxxx
  • Date: Thu, 14 Aug 2008 16:25:24 -0000
  • Message-id: <20080814162524.EBD602DC70@xxxxxxxxxxxxxxxx>
Author: mlandres
Date: Thu Aug 14 18:25:24 2008
New Revision: 10862

URL: http://svn.opensuse.org/viewcvs/zypp?rev=10862&view=rev
Log:
provide ResObject::distribution

Modified:
trunk/libzypp/zypp/ResObject.cc
trunk/libzypp/zypp/ResObject.h

Modified: trunk/libzypp/zypp/ResObject.cc
URL:
http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/ResObject.cc?rev=10862&r1=10861&r2=10862&view=diff
==============================================================================
--- trunk/libzypp/zypp/ResObject.cc (original)
+++ trunk/libzypp/zypp/ResObject.cc Thu Aug 14 18:25:24 2008
@@ -70,6 +70,9 @@
std::string ResObject::licenseToConfirm( const Locale & lang_r ) const
{ return lookupStrAttribute( sat::SolvAttr::eula, lang_r ); }

+ std::string ResObject::distribution() const
+ { return lookupStrAttribute( sat::SolvAttr::distribution ); }
+
ByteCount ResObject::installSize() const
{ return ByteCount( lookupNumAttribute( sat::SolvAttr::installsize ),
ByteCount::K ); }


Modified: trunk/libzypp/zypp/ResObject.h
URL:
http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/ResObject.h?rev=10862&r1=10861&r2=10862&view=diff
==============================================================================
--- trunk/libzypp/zypp/ResObject.h (original)
+++ trunk/libzypp/zypp/ResObject.h Thu Aug 14 18:25:24 2008
@@ -103,11 +103,16 @@
/**
* \short Vendor
*
- * For Example "Novell Inc."
+ * For example "Novell Inc."
*/
Vendor vendor() const
{ return Resolvable::vendor().asString(); }

+ /** The distribution string.
+ * E.g. \c code-11.
+ */
+ std::string distribution() const;
+
/** Installed size. */
ByteCount installSize() const;
/** \deprecated Use installSize which is more precise.*/

--
To unsubscribe, e-mail: zypp-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages