From f5e20c8a369e1be06c59dae1a741d50b4e5831bc Mon Sep 17 00:00:00 2001 From: Josef Reidinger Date: Tue, 20 May 2008 07:28:37 +0000 Subject: [PATCH] add backward compatibility with old attribute name (kind, string_type and global_string). --- zypp/PoolQuery.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/zypp/PoolQuery.cc b/zypp/PoolQuery.cc index 102659d..f18c844 100644 --- a/zypp/PoolQuery.cc +++ b/zypp/PoolQuery.cc @@ -1008,15 +1008,18 @@ attremptycheckend: { addRepo( attrValue ); } - else if ( attribute==PoolQueryAttr::kindAttr ) + /* some backwards compatibility */ + else if ( attribute==PoolQueryAttr::kindAttr || attribute=="kind" ) { addKind( ResKind(attrValue) ); } - else if ( attribute==PoolQueryAttr::stringAttr ) + else if ( attribute==PoolQueryAttr::stringAttr + || attribute=="global_string") { addString( attrValue ); } - else if ( attribute==PoolQueryAttr::stringTypeAttr ) + else if ( attribute==PoolQueryAttr::stringTypeAttr + || attribute=="string_type" ) { StringTypeAttr s(attrValue); if( s == StringTypeAttr::regexAttr ) -- 2.7.4