Mailinglist Archive: zypp-commit (149 mails)

< Previous Next >
[zypp-commit] r5333 - in /trunk/libzypp/devel/devel.ma: CMakeLists.txt Xml.cc
  • From: mlandres@xxxxxxxxxxxxxxxx
  • Date: Wed, 11 Apr 2007 11:02:08 -0000
  • Message-id: <20070411110208.DDC1A23665@xxxxxxxxxxxxxxxx>
Author: mlandres
Date: Wed Apr 11 13:02:08 2007
New Revision: 5333

URL: http://svn.opensuse.org/viewcvs/zypp?rev=5333&view=rev
Log: (empty)

Modified:
    trunk/libzypp/devel/devel.ma/CMakeLists.txt
    trunk/libzypp/devel/devel.ma/Xml.cc

Modified: trunk/libzypp/devel/devel.ma/CMakeLists.txt
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/devel/devel.ma/CMakeLists.txt?rev=5333&r1=5332&r2=5333&view=diff
==============================================================================
--- trunk/libzypp/devel/devel.ma/CMakeLists.txt (original)
+++ trunk/libzypp/devel/devel.ma/CMakeLists.txt Wed Apr 11 13:02:08 2007
@@ -29,7 +29,7 @@
 
 ## ############################################################
 
-FOREACH( loop_var ScanSource Iorder Parse )
+FOREACH( loop_var ScanSource Iorder Parse Xml )
    ADD_EXECUTABLE( ${loop_var}
       ${loop_var}.cc
    )

Modified: trunk/libzypp/devel/devel.ma/Xml.cc
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/devel/devel.ma/Xml.cc?rev=5333&r1=5332&r2=5333&view=diff
==============================================================================
--- trunk/libzypp/devel/devel.ma/Xml.cc (original)
+++ trunk/libzypp/devel/devel.ma/Xml.cc Wed Apr 11 13:02:08 2007
@@ -90,12 +90,10 @@
        && reader_r->name() == "version" )
     {
       MIL << *reader_r << endl;
-      DBG << reader_r->getAttribute( "rel" ) << endl;
-      ERR << *reader_r << endl;
-      DBG << reader_r->getAttribute( "ver" ) << endl;
-      ERR << *reader_r << endl;
-      DBG << reader_r->getAttribute( "epoch" ) << endl;
-      ERR << *reader_r << endl;
+#define _show(x) DBG << #x << " = " << reader_r->getAttribute( #x ) << endl
+      _show( rel );
+      _show( ver );
+      _show( epoch );
       WAR << Edition( reader_r->getAttribute( "ver" ).asString(),
                       reader_r->getAttribute( "rel" ).asString(),
                       reader_r->getAttribute( "epoch" ).asString() ) << endl;
@@ -172,10 +170,23 @@
     {
       Measure m( "Parse" );
       xml::Reader reader( repodata );
-      if ( 0 )
-       reader.foreachNode( dumpNode );
-      else
-       reader.foreachNodeOrAttribute( dumpNode );
+
+      switch ( 3 )
+      {
+       case 1:
+         reader.foreachNode( dumpNode );
+         break;
+       case 2:
+         reader.foreachNodeOrAttribute( dumpNode );
+         break;
+       case 3:
+         reader.foreachNode( dumpEd );
+         break;
+
+       default:
+         WAR << "NOP" << endl;
+         break;
+      }
     }
 
   INT << "===[END]============================================" << endl << endl;
@@ -256,4 +267,4 @@
 2:  ELEMENT <description>  [noattr]
 3:   TEXT <#text>  [noattr] {Fam is a file alteration monitoring service. This means that you can
 
-*/
\ No newline at end of file
+*/

--
To unsubscribe, e-mail: zypp-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages