From: James Turner Date: Tue, 26 Jan 2016 16:46:58 +0000 (+0000) Subject: Fix a bug with updating packages. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=bb9fd9defed3effe84d75fb67e04f79e99865fe6;p=flightgear.git Fix a bug with updating packages. - always refresh the catalogs each launch, so we don’t get mismatches between the cached copy the and package zips. --- 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;