re-insert blanks into capability to work around regexp bug(?) in CapFactory::parse
authorKlaus Kaempf <kkaempf@suse.de>
Thu, 17 Aug 2006 11:57:31 +0000 (11:57 +0000)
committerKlaus Kaempf <kkaempf@suse.de>
Thu, 17 Aug 2006 11:57:31 +0000 (11:57 +0000)
zypp/source/susetags/ProductMetadataParser.cc

index 69dbdc5..8c2941c 100644 (file)
@@ -301,15 +301,18 @@ namespace zypp
            ++next;
            if (next != splitted.end()) {                       // check for "op edition"
                string val = *next;
-               if (val.find_first_of("<>=") != string::npos)
+               if (val.find_first_of("<>=") != string::npos)   // next token is op
                {
-                   if (++next != splitted.end()) {
+                   if (++next != splitted.end()) {             // ensure edition follows
+                       name += " ";
                        name += val;
+                       name += " ";
                        name += *next;
                        it = next;
                    }
                }
            }
+           DBG << "parsing[" << name << "]" << endl;
            try {
                deps[deptag].insert( f.parse( kind, name ) );
            }