From bb9fd9defed3effe84d75fb67e04f79e99865fe6 Mon Sep 17 00:00:00 2001 From: James Turner Date: Tue, 26 Jan 2016 16:46:58 +0000 Subject: [PATCH] Fix a bug with updating packages. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit - always refresh the catalogs each launch, so we don’t get mismatches between the cached copy the and package zips. --- src/Network/HTTPClient.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Network/HTTPClient.cxx b/src/Network/HTTPClient.cxx index 57b6626dd..e6d2b29d7 100644 --- a/src/Network/HTTPClient.cxx +++ b/src/Network/HTTPClient.cxx @@ -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; -- 2.39.5