From: Josef Reidinger Date: Thu, 13 Mar 2008 17:38:00 +0000 (+0000) Subject: enable frontend to rewrite add_probe settings. Correct adding repo without type to... X-Git-Tag: BASE-SuSE-Linux-11_0-Branch~445 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=60ee4c867564fc0b07e624714737d88cab2693fd;p=platform%2Fupstream%2Flibzypp.git enable frontend to rewrite add_probe settings. Correct adding repo without type to lazy probing.(bnc #309612) --- diff --git a/zypp/RepoManager.cc b/zypp/RepoManager.cc index 104d146..8a58e39 100644 --- a/zypp/RepoManager.cc +++ b/zypp/RepoManager.cc @@ -69,6 +69,7 @@ namespace zypp repoRawCachePath = ZConfig::instance().repoMetadataPath(); repoPackagesCachePath = ZConfig::instance().repoPackagesPath(); knownReposPath = ZConfig::instance().knownReposPath(); + probe = ZConfig::instance().repo_add_probe(); } //////////////////////////////////////////////////////////////////////////// @@ -1010,8 +1011,7 @@ namespace zypp RepoInfo tosave = info; // check the first url for now - if ( ZConfig::instance().repo_add_probe() - || ( tosave.type() == RepoType::NONE && tosave.enabled()) ) + if ( _pimpl->options.probe ) { DBG << "unknown repository type, probing" << endl; diff --git a/zypp/RepoManager.h b/zypp/RepoManager.h index 3828034..4d5f3af 100644 --- a/zypp/RepoManager.h +++ b/zypp/RepoManager.h @@ -53,6 +53,7 @@ namespace zypp Pathname repoRawCachePath; Pathname repoPackagesCachePath; Pathname knownReposPath; + bool probe; }; /**