fix specfile
[platform/upstream/libzypp.git] / devel / devel.ma / NewPool.cc
index 613cd9d..dc033bc 100644 (file)
@@ -157,7 +157,7 @@ std::ostream & testDump( std::ostream & str, const PoolItem & pi )
     l = Locale( "dsdf" );
     str << str::form("%-25s: ",l.code().c_str()) << p->summary(l) << endl;
     OUTS( summary );
-    OUTS( installsize );
+    OUTS( installSize );
     OUTS( downloadSize );
     OUTS( sourcePkgName );
     OUTS( sourcePkgEdition );
@@ -600,7 +600,7 @@ try {
   ///////////////////////////////////////////////////////////////////
   ///////////////////////////////////////////////////////////////////
 
-  if ( 1 )
+  if ( 0 )
   {
     PoolItem pi ( getPi<Patch>("xorg-x11-Xvnc") );
     MIL << pi << endl;
@@ -611,6 +611,23 @@ try {
     }
   }
 
+  SEC << endl;
+  for_( it, pool.knownRepositoriesBegin(), pool.knownRepositoriesEnd() )
+  {
+    USR << *it << endl;
+    it->info().hasLicense();
+  }
+
+  SEC << endl;
+  RepoManager repoManager( makeRepoManager( sysRoot ) );
+  RepoInfoList repos = repoManager.knownRepositories();
+  for_( it, repos.begin(), repos.end() )
+  {
+    USR << *it << endl;
+    it->hasLicense();
+    WAR << it->getLicense( Locale("de_De") ) << endl;
+  }
+
 #if 0
   getZYpp()->resolver()->addRequire( Capability("amarok") );
   solve();