From: Duncan Mac-Vicar P Date: Fri, 24 Mar 2006 16:53:48 +0000 (+0000) Subject: parse also the available signing keys X-Git-Tag: BASE-SuSE-SLE-10-SP2-Branch~1396 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c4732934fd3d4b5f19480d0e5978ff36d3ed34e7;p=platform%2Fupstream%2Flibzypp.git parse also the available signing keys --- diff --git a/zypp/source/susetags/ProductMetadataParser.cc b/zypp/source/susetags/ProductMetadataParser.cc index 8ba9c5e..e432cb4 100644 --- a/zypp/source/susetags/ProductMetadataParser.cc +++ b/zypp/source/susetags/ProductMetadataParser.cc @@ -130,6 +130,8 @@ namespace zypp prodImpl->_timezone = value; else if(key == "META") parseFileCheckSum( key, value, prodImpl->_descr_files_checksums); + else if(key == "KEY") + parseFileCheckSum( key, value, prodImpl->_signing_keys); else DBG << "parse error" << std::endl; } @@ -234,7 +236,7 @@ namespace zypp } } } - + void ProductMetadataParser::parseFileCheckSum( const std::string &key, const std::string &value, std::map &container) { std::list splitted; diff --git a/zypp/source/susetags/SuseTagsProductImpl.h b/zypp/source/susetags/SuseTagsProductImpl.h index e24d33c..fef97a1 100644 --- a/zypp/source/susetags/SuseTagsProductImpl.h +++ b/zypp/source/susetags/SuseTagsProductImpl.h @@ -73,6 +73,7 @@ namespace zypp std::string _timezone; std::map _descr_files_checksums; + std::map _signing_keys; Source_Ref _source;