From 60ee4c867564fc0b07e624714737d88cab2693fd Mon Sep 17 00:00:00 2001 From: Josef Reidinger Date: Thu, 13 Mar 2008 17:38:00 +0000 Subject: [PATCH] enable frontend to rewrite add_probe settings. Correct adding repo without type to lazy probing.(bnc #309612) --- zypp/RepoManager.cc | 4 ++-- zypp/RepoManager.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) 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; }; /** -- 2.7.4