Change-Id: I5cb1267409aa3cd53a2580582773e1b1b878417e
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
#
SET(LIBZYPP_MAJOR "15")
SET(LIBZYPP_COMPATMINOR "5")
#
SET(LIBZYPP_MAJOR "15")
SET(LIBZYPP_COMPATMINOR "5")
-# LAST RELEASED: 15.6.0 (5)
+# LAST RELEASED: 15.7.0 (5)
# (The number in parenthesis is LIBZYPP_COMPATMINOR)
#=======
# (The number in parenthesis is LIBZYPP_COMPATMINOR)
#=======
-------------------------------------------------------------------
-------------------------------------------------------------------
+Wed Jul 1 14:00:42 CEST 2015 - ma@suse.de
+
+- add asString for Patch::Category
+- version 15.7.0 (5)
+
+-------------------------------------------------------------------
Mon Jun 29 17:43:00 CEST 2015 - ma@suse.de
- Fix lost pathname when importing repo keys (bnc#936373)
Mon Jun 29 17:43:00 CEST 2015 - ma@suse.de
- Fix lost pathname when importing repo keys (bnc#936373)
+ std::string asString( const Patch::Category & obj )
+ {
+ switch ( obj )
+ {
+ case Patch::CAT_OTHER: return std::string( "other" ); break;
+ case Patch::CAT_YAST: return std::string( "yast" ); break;
+ case Patch::CAT_SECURITY: return std::string( "security" ); break;
+ case Patch::CAT_RECOMMENDED: return std::string( "recommended" ); break;
+ case Patch::CAT_OPTIONAL: return std::string( "optional" ); break;
+ case Patch::CAT_DOCUMENT: return std::string( "document" ); break;
+ }
+ // make gcc happy:
+ return std::string( "other" );
+ }
+
///////////////////////////////////////////////////////////////////
std::string Patch::severity() const
///////////////////////////////////////////////////////////////////
std::string Patch::severity() const
ZYPP_DECLARE_OPERATORS_FOR_FLAGS(Patch::InteractiveFlags);
ZYPP_DECLARE_OPERATORS_FOR_FLAGS(Patch::SeverityFlags);
ZYPP_DECLARE_OPERATORS_FOR_FLAGS(Patch::InteractiveFlags);
ZYPP_DECLARE_OPERATORS_FOR_FLAGS(Patch::SeverityFlags);
+ /** \relates Patch::Category string representation.*/
+ std::string asString( const Patch::Category & obj );
+
/** \relates Patch::SeverityFlag string representation.*/
std::string asString( const Patch::SeverityFlag & obj );
/** \relates Patch::SeverityFlag string representation.*/
std::string asString( const Patch::SeverityFlag & obj );