enable frontend to rewrite add_probe settings. Correct adding repo without type to...
authorJosef Reidinger <jreidinger@suse.cz>
Thu, 13 Mar 2008 17:38:00 +0000 (17:38 +0000)
committerJosef Reidinger <jreidinger@suse.cz>
Thu, 13 Mar 2008 17:38:00 +0000 (17:38 +0000)
zypp/RepoManager.cc
zypp/RepoManager.h

index 104d146..8a58e39 100644 (file)
@@ -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;
 
index 3828034..4d5f3af 100644 (file)
@@ -53,6 +53,7 @@ namespace zypp
     Pathname repoRawCachePath;
     Pathname repoPackagesCachePath;
     Pathname knownReposPath;
+    bool probe;
   };
 
   /**