#
SET(LIBZYPP_MAJOR "15")
SET(LIBZYPP_COMPATMINOR "5")
-SET(LIBZYPP_MINOR "6")
+SET(LIBZYPP_MINOR "7")
SET(LIBZYPP_PATCH "0")
#
-# LAST RELEASED: 15.6.0 (5)
+# LAST RELEASED: 15.7.0 (5)
# (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)
return CAT_OTHER;
}
+ 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
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 );