Fix newer infrastructure discarded over bundle

This commit is contained in:
Davide De Rosa 2021-11-27 12:28:33 +01:00
parent 549fe3d95e
commit cb3c2401c7
3 changed files with 5 additions and 3 deletions

View File

@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## 1.17.2 Beta 2924 (2021-11-25)
## Unreleased
### Changed
@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- "TLS failed" with some certificates (e.g. Let's Encrypt).
- Newer infrastructure discarded over bundle.
## 1.17.0 (2021-11-16)

View File

@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## 1.17.2 Beta 2924 (2021-11-25)
## Unreleased
### Changed
@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- "TLS failed" with some certificates (e.g. Let's Encrypt).
- Newer infrastructure discarded over bundle.
## 1.17.0 (2021-11-16)

View File

@ -118,7 +118,7 @@ public class InfrastructureFactory {
}
// pick cache if newer
if Utils.isFile(at: entry, newerThanFileAt: name.bundleURL) {
if Utils.isFile(at: cacheURL(forName: name), newerThanFileAt: name.bundleURL) {
let infraPath = WebServices.Endpoint.providerNetwork(name).apiURL(relativeTo: cachePath)
do {
let infraData = try Data(contentsOf: infraPath)