- added kind of capabilities
authorStefan Schubert <schubi@suse.de>
Tue, 14 Nov 2006 15:32:25 +0000 (15:32 +0000)
committerStefan Schubert <schubi@suse.de>
Tue, 14 Nov 2006 15:32:25 +0000 (15:32 +0000)
- removed unneded channel from uninstall

zypp/solver/detail/Testcase.cc

index 8f7baca..438c1f6 100644 (file)
@@ -105,11 +105,13 @@ std::string helixXML( const Capability &cap )
            str << " release='" << cap.edition().release() << "'";
        if (cap.edition().epoch() != Edition::noepoch)
            str << " epoch='" << numstring(cap.edition().epoch()) << "'";
-       str << " />" << endl;
     } else {
        // anything else
-       str << "<dep name='" << xml_escape(cap.asString()) << "' />" << endl;   
+       str << "<dep name='" << xml_escape(cap.asString()) << "'";
     }
+    str << " kind=\"" << toLower (cap.refers().asString()) << "\""
+       << " />" << endl;
+       
     return str.str();    
 }
 
@@ -344,7 +346,7 @@ void HelixControl::installResolvable(const ResObject::constPtr &resObject)
 void HelixControl::deleteResolvable(const ResObject::constPtr &resObject)
 {
     Source_Ref source  = resObject->source();    
-    *file << "<uninstall channel=\"" << numstring(source.numericId()) << "\" kind=\"" << toLower (resObject->kind().asString()) << "\""
+    *file << "<uninstall " << " kind=\"" << toLower (resObject->kind().asString()) << "\""
          << " name=\"" << resObject->name() << "\"" << "/>" << endl;    
 }