Consider pending disable requests when removing service repositories. (bnc #572634)
authorMichael Andres <ma@suse.de>
Mon, 22 Feb 2010 11:22:03 +0000 (12:22 +0100)
committerMichael Andres <ma@suse.de>
Mon, 22 Feb 2010 11:22:03 +0000 (12:22 +0100)
zypp/RepoManager.cc

index 6667ec7..23b3da8 100644 (file)
@@ -1942,7 +1942,7 @@ namespace zypp
     {
       if ( ! foundAliasIn( it->alias(), collector.repos ) )
       {
-        if ( it->enabled() )
+        if ( it->enabled() && ! service.repoToDisableFind( it->alias() ) )
         {
           DBG << "Service removes enabled repo " << it->alias() << endl;
           service.addRepoToEnable( it->alias() );