Save repo type during refresh if type is NONE (f.e. lazy probing).
authorJosef Reidinger <jreidinger@suse.cz>
Fri, 14 Mar 2008 11:04:50 +0000 (11:04 +0000)
committerJosef Reidinger <jreidinger@suse.cz>
Fri, 14 Mar 2008 11:04:50 +0000 (11:04 +0000)
zypp/RepoManager.cc

index 8a58e39..92e5a95 100644 (file)
@@ -547,6 +547,14 @@ namespace zypp
           case RepoType::NONE_e:
             // unknown, probe it
             repokind = probe(*it);
+
+            if (repokind.toEnum() != RepoType::NONE_e)
+            {
+              //save probed type
+              RepoInfo modifiedrepo = info;
+              modifiedrepo.setType(repokind);
+              modifyRepository(info.alias(),modifiedrepo);
+            }
           break;
           default:
           break;