backup
[platform/upstream/libzypp.git] / devel / devel.ma / Test.cc
index 97ce17e..12e2951 100644 (file)
@@ -1,4 +1,5 @@
 #include "Tools.h"
+#include <zypp/ResObjects.h>
 
 /******************************************************************
 **
@@ -10,11 +11,19 @@ int main( int argc, char * argv[] )
   INT << "===[START]==========================================" << endl;
 
   // https://bugzilla.novell.com/show_bug.cgi?id=442200
-
   Pathname mroot( "/tmp/ToolScanRepos" );
   TestSetup test( mroot, Arch_x86_64 );
   test.loadRepos();
 
+  ResPool pool( test.pool() );
+  for_( it, pool.byKindBegin<Patch>(), pool.byKindEnd<Patch>() )
+  {
+    Patch::constPtr p( (*it)->asKind<Patch>() );
+    MIL << p << endl;
+    Patch::Contents contents( p->contents() );
+    DBG << contents << endl;
+  }
+
 
   INT << "===[END]============================================" << endl << endl;
   return 0;