parse also the available signing keys
authorDuncan Mac-Vicar P <dmacvicar@suse.de>
Fri, 24 Mar 2006 16:53:48 +0000 (16:53 +0000)
committerDuncan Mac-Vicar P <dmacvicar@suse.de>
Fri, 24 Mar 2006 16:53:48 +0000 (16:53 +0000)
zypp/source/susetags/ProductMetadataParser.cc
zypp/source/susetags/SuseTagsProductImpl.h

index 8ba9c5e..e432cb4 100644 (file)
@@ -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<std::string, CheckSum> &container)
       {
         std::list<std::string> splitted;
index e24d33c..fef97a1 100644 (file)
@@ -73,6 +73,7 @@ namespace zypp
       std::string _timezone;
       
       std::map<std::string, CheckSum> _descr_files_checksums;
+      std::map<std::string, CheckSum> _signing_keys;
       
       Source_Ref _source;