recognize <atom>
authorKlaus Kaempf <kkaempf@suse.de>
Sun, 26 Feb 2006 16:39:18 +0000 (16:39 +0000)
committerKlaus Kaempf <kkaempf@suse.de>
Sun, 26 Feb 2006 16:39:18 +0000 (16:39 +0000)
testsuite/solver/src/helix/HelixParser.cc

index 3586b18..cb4d712 100644 (file)
@@ -71,6 +71,9 @@ string2kind (const std::string & str)
        else if (str == "language") {
            kind = ResTraits<Language>::kind;
        }
+       else if (str == "atom") {
+           kind = ResTraits<Atom>::kind;
+       }
        else {
            ERR << "get_resItem unknown kind '" << str << "'" << endl;
        }
@@ -444,6 +447,7 @@ HelixParser::toplevelStart(const std::string & token, const xmlChar **attrs)
        || (token == "message")
        || (token == "language")
        || (token == "patch")
+       || (token == "atom")
        || (token == "product")) {
 
        _state = PARSER_RESOLVABLE;
@@ -620,6 +624,7 @@ HelixParser::resolvableEnd (const std::string & token)
        || (token == "message")
        || (token == "language")
        || (token == "patch")
+       || (token == "atom")
        || (token == "product")) {
 
        kind = string2kind (token);