From c26381a811384bee2030bd4f0320a1e026fa30d3 Mon Sep 17 00:00:00 2001 From: memo Date: Sun, 12 May 2024 11:17:19 +0200 Subject: [PATCH] fix bug causing Clickteam installer assets to be reinstalled at every update --- CHANGELOG.md | 3 +++ src/main/scala/sc4pac/Data.scala | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6952ed0..9e6b021 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ - warning about outdated metadata, in case an inclusion/exclusion pattern does not match any files in an Asset anymore. - support for rendering package identifiers in metadata description text, using syntax `` `pkg=group:name` ``. +### Fixed +- a bug causing assets containing Clickteam installers to be reinstalled whenever running `sc4pac update`. + ## [0.4.2] - 2024-04-18 ### Added diff --git a/src/main/scala/sc4pac/Data.scala b/src/main/scala/sc4pac/Data.scala index 3d67088..ada5cfb 100644 --- a/src/main/scala/sc4pac/Data.scala +++ b/src/main/scala/sc4pac/Data.scala @@ -166,7 +166,7 @@ object JsonData extends SharedData { version = dep.version, url = dep.url, lastModified = dep.lastModified.getOrElse(null), - archiveType = None // not needed in lock file, as only version info is needed to determine if previously installed files are outdated + archiveType = dep.archiveType )) ) }