debug output fixed
authorMichael Andres <ma@suse.de>
Fri, 15 Feb 2008 16:53:34 +0000 (16:53 +0000)
committerMichael Andres <ma@suse.de>
Fri, 15 Feb 2008 16:53:34 +0000 (16:53 +0000)
zypp/ResObject.cc
zypp/sat/Solvable.cc

index 6d34a3d..e802d97 100644 (file)
@@ -102,7 +102,7 @@ namespace zypp
   //
   std::ostream & ResObject::dumpOn( std::ostream & str ) const
   {
-    return Resolvable::dumpOn( str << "[S" << repository().numericId() << ":" << mediaNr() << "]" );
+    return Resolvable::dumpOn( str );
   }
 
   ///////////////////////////////////////////////////////////////////
index a0d2b51..b0a87ba 100644 (file)
@@ -81,7 +81,7 @@ namespace zypp
     {
       return repo_lookup_num(this->get(), attr.idStr().id());
     }
-    
+
     bool Solvable::lookupBoolAttribute( const SolvAttr &attr ) const
     {
       return repo_lookup_num(this->get(), attr.idStr().id()) > 0;
@@ -150,7 +150,7 @@ namespace zypp
       }
       medianr = lc.medianr;
       std::string ret;
-      
+
       if (!lc.trivial)
       {
         if (lc.mediafile)
@@ -366,10 +366,10 @@ namespace zypp
       if ( ! obj )
         return str << "sat::solvable()";
 
-      return str << "sat::solvable(" << obj.id() << "|"
+      return str << "(" << obj.id() << ")"
           << ( obj.isKind( ResKind::srcpackage ) ? "srcpackage:" : "" ) << obj.ident()
-          << '-' << obj.edition() << '.' << obj.arch() << "){"
-          << obj.repo().name() << "}";
+          << '-' << obj.edition() << '.' << obj.arch() << "("
+          << obj.repo().name() << ")";
     }
 
     /******************************************************************