Mailinglist Archive: zypp-commit (266 mails)

< Previous Next >
[zypp-commit] r11634 - in /trunk/libzypp: VERSION.cmake package/libzypp.changes zypp/CheckSum.cc zypp/CheckSum.h
  • From: mlandres@xxxxxxxxxxxxxxxx
  • Date: Fri, 07 Nov 2008 18:53:54 -0000
  • Message-id: <20081107185354.9B24F34659@xxxxxxxxxxxxxxxx>
Author: mlandres
Date: Fri Nov 7 19:53:54 2008
New Revision: 11634

URL: http://svn.opensuse.org/viewcvs/zypp?rev=11634&view=rev
Log:
- Add CheckSum::asString.

Modified:
trunk/libzypp/VERSION.cmake
trunk/libzypp/package/libzypp.changes
trunk/libzypp/zypp/CheckSum.cc
trunk/libzypp/zypp/CheckSum.h

Modified: trunk/libzypp/VERSION.cmake
URL:
http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/VERSION.cmake?rev=11634&r1=11633&r2=11634&view=diff
==============================================================================
--- trunk/libzypp/VERSION.cmake (original)
+++ trunk/libzypp/VERSION.cmake Fri Nov 7 19:53:54 2008
@@ -60,7 +60,7 @@
#
SET(LIBZYPP_MAJOR "5")
SET(LIBZYPP_COMPATMINOR "20")
-SET(LIBZYPP_MINOR "20")
+SET(LIBZYPP_MINOR "21")
SET(LIBZYPP_PATCH "0")
#
# LAST RELEASED: 5.20.0 (20)

Modified: trunk/libzypp/package/libzypp.changes
URL:
http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/package/libzypp.changes?rev=11634&r1=11633&r2=11634&view=diff
==============================================================================
--- trunk/libzypp/package/libzypp.changes (original)
+++ trunk/libzypp/package/libzypp.changes Fri Nov 7 19:53:54 2008
@@ -1,4 +1,10 @@
-------------------------------------------------------------------
+Fri Nov 7 19:51:00 CET 2008 - ma@xxxxxxx
+
+- Add CheckSum::asString.
+- revision 11634
+
+-------------------------------------------------------------------
Fri Nov 7 17:55:48 CET 2008 - ma@xxxxxxx

- revision 11631

Modified: trunk/libzypp/zypp/CheckSum.cc
URL:
http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/CheckSum.cc?rev=11634&r1=11633&r2=11634&view=diff
==============================================================================
--- trunk/libzypp/zypp/CheckSum.cc (original)
+++ trunk/libzypp/zypp/CheckSum.cc Fri Nov 7 19:53:54 2008
@@ -10,6 +10,7 @@
*
*/
#include <iostream>
+#include <sstream>

#include "zypp/base/Logger.h"
#include "zypp/base/Gettext.h"
@@ -131,6 +132,13 @@
bool CheckSum::empty() const
{ return (checksum().empty() || type().empty()); }

+ std::string CheckSum::asString() const
+ {
+ std::ostringstream str;
+ str << *this;
+ return str.str();
+ }
+
std::ostream & operator<<( std::ostream & str, const CheckSum & obj )
{
if ( obj.checksum().empty() )

Modified: trunk/libzypp/zypp/CheckSum.h
URL:
http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/CheckSum.h?rev=11634&r1=11633&r2=11634&view=diff
==============================================================================
--- trunk/libzypp/zypp/CheckSum.h (original)
+++ trunk/libzypp/zypp/CheckSum.h Fri Nov 7 19:53:54 2008
@@ -69,6 +69,9 @@
std::string checksum() const;
bool empty() const;

+ public:
+ std::string asString() const;
+
private:
std::string _type;
std::string _checksum;

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

< Previous Next >
This Thread
  • No further messages