diff options
author | Sean Hall <r.sean.hall@gmail.com> | 2021-04-16 10:29:10 -0500 |
---|---|---|
committer | Sean Hall <r.sean.hall@gmail.com> | 2021-04-19 23:12:55 -0500 |
commit | 9a061c70f8d87d4f4703bd88a0eaae98c3cfc1d5 (patch) | |
tree | d124655bcfb2aff4a026b8aac5c8b5e7d8e060c3 /src/engine/plan.cpp | |
parent | 66360b60b0298c88d32ce2b5e5ce5befa1c09ff8 (diff) | |
download | wix-9a061c70f8d87d4f4703bd88a0eaae98c3cfc1d5.tar.gz wix-9a061c70f8d87d4f4703bd88a0eaae98c3cfc1d5.tar.bz2 wix-9a061c70f8d87d4f4703bd88a0eaae98c3cfc1d5.zip |
Always send OnCacheAcquireProgress at least once per payload.
Always send OnCacheAcquireProgress between OnCacheAcquireBegin and OnCacheAcquireComplete.
Track the successful cache acquisition progress during the final progress call.
Diffstat (limited to 'src/engine/plan.cpp')
-rw-r--r-- | src/engine/plan.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/engine/plan.cpp b/src/engine/plan.cpp index cfe4893b..a37dcc89 100644 --- a/src/engine/plan.cpp +++ b/src/engine/plan.cpp | |||
@@ -1010,7 +1010,13 @@ extern "C" HRESULT PlanLayoutContainer( | |||
1010 | } | 1010 | } |
1011 | else | 1011 | else |
1012 | { | 1012 | { |
1013 | pPlan->qwCacheSizeTotal += 2 * pContainer->qwFileSize; | 1013 | if (!pContainer->fActuallyAttached) |
1014 | { | ||
1015 | pPlan->qwCacheSizeTotal += pContainer->qwFileSize; | ||
1016 | } | ||
1017 | |||
1018 | // TODO: This should be the sum of all uncompressed payloads in the container, ideally restricted to the payloads that were actually planned. | ||
1019 | pPlan->qwCacheSizeTotal += pContainer->qwFileSize; | ||
1014 | } | 1020 | } |
1015 | 1021 | ||
1016 | if (!pContainer->sczUnverifiedPath) | 1022 | if (!pContainer->sczUnverifiedPath) |