Do not parse metadata of disabled sources *blush* (#217297).
authorMartin Vidner <mvidner@suse.cz>
Thu, 2 Nov 2006 13:44:24 +0000 (13:44 +0000)
committerMartin Vidner <mvidner@suse.cz>
Thu, 2 Nov 2006 13:44:24 +0000 (13:44 +0000)
package/zypper.changes
src/zmart-misc.cc

index edf177b..31eb906 100644 (file)
@@ -1,4 +1,9 @@
 -------------------------------------------------------------------
+Thu Nov  2 14:41:02 CET 2006 - mvidner@suse.cz
+
+- Do not parse metadata of disabled sources *blush* (#217297).
+
+-------------------------------------------------------------------
 Wed Nov  1 19:54:55 CET 2006 - mvidner@suse.cz
 
 - Added a manual page zypper(8) (#216028).
index 221d364..1d7f06d 100644 (file)
@@ -306,15 +306,13 @@ void load_sources()
 {
   for ( std::list<Source_Ref>::iterator it = gData.sources.begin(); it !=  gData.sources.end(); ++it )
   {
-    Source_Ref src = *it;
-    // skip non YUM sources for now
-    //if ( it->type() == "YUM" )
-    //{
+    if (! it->enabled())
+      continue;                        // #217297
+
     cerr << "Parsing metadata for " << it->alias() << "..." << endl;
     ResStore src_resolvables(it->resolvables());
     cerr_v << "   " <<  src_resolvables.size() << " resolvables." << endl;
     God->addResolvables(src_resolvables);
-    //}
   }
 }