Author: jkupec Date: Thu Sep 20 17:37:19 2007 New Revision: 7319 URL: http://svn.opensuse.org/viewcvs/zypp?rev=7319&view=rev Log: - don't probe the repository type upon saving if disabled (#326769) Modified: trunk/libzypp/zypp/RepoManager.cc Modified: trunk/libzypp/zypp/RepoManager.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/RepoManager.cc?rev=7319&r1=7318&r2=7319&view=diff ============================================================================== --- trunk/libzypp/zypp/RepoManager.cc (original) +++ trunk/libzypp/zypp/RepoManager.cc Thu Sep 20 17:37:19 2007 @@ -923,10 +923,13 @@ } RepoInfo tosave = info; - + // check the first url for now - if ( ZConfig::instance().repo_add_probe() || ( tosave.type() == RepoType::NONE ) ) + if ( ZConfig::instance().repo_add_probe() + || ( tosave.type() == RepoType::NONE && tosave.enabled()) ) { + DBG << "unknown repository type, probing" << endl; + RepoType probedtype; probedtype = probe(*tosave.baseUrlsBegin()); if ( tosave.baseUrlsSize() > 0 ) @@ -937,7 +940,7 @@ tosave.setType(probedtype); } } - + progress.set(50); // assert the directory exists -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org