]> git.mxchange.org Git - flightgear.git/commitdiff
Fix a bug with updating packages.
authorJames Turner <zakalawe@mac.com>
Tue, 26 Jan 2016 16:46:58 +0000 (16:46 +0000)
committerJames Turner <zakalawe@mac.com>
Tue, 26 Jan 2016 16:46:58 +0000 (16:46 +0000)
- always refresh the catalogs each launch, so we don’t get mismatches
  between the cached copy the and package zips.

src/Network/HTTPClient.cxx

index 57b6626dd3b6932547512fa9a072867667d5e0db..e6d2b29d7fa9d957a1c7851886b348a308901e57 100644 (file)
@@ -149,7 +149,10 @@ void FGHTTPClient::init()
     packageRoot->addDelegate(_packageDelegate.get());
     
     // start a refresh now
-    packageRoot->refresh();
+    // setting 'force' true to work around the problem where a slightly stale
+    // catalog exists, but aircraft are modified - this causes an MD5 sum
+    // mismatch
+    packageRoot->refresh(true);
   }
 
     _inited = true;