This is the mail archive of the
cygwin-apps
mailing list for the Cygwin project.
[PATCH setup 02/10] Correctly calculate total data to checksum when using IncludeSource
- From: Jon Turney <jon dot turney at dronecode dot org dot uk>
- To: cygwin-apps at cygwin dot com
- Cc: Jon Turney <jon dot turney at dronecode dot org dot uk>
- Date: Tue, 23 May 2017 17:45:50 +0100
- Subject: [PATCH setup 02/10] Correctly calculate total data to checksum when using IncludeSource
- Authentication-results: sourceware.org; auth=none
- References: <20170523164558.50320-1-jon.turney@dronecode.org.uk>
Correctly account for source packages installed due to IncludeSource in the
total amount of data to checksum.
The fact that this obvious bug is unreported kind of suggests that no-one is
actually using this option...
---
install.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/install.cc b/install.cc
index 3721047..79ddd20 100644
--- a/install.cc
+++ b/install.cc
@@ -745,7 +745,7 @@ do_install_thread (HINSTANCE h, HWND owner)
md5sum_total_bytes += pkg.desired.source()->size;
}
- if (pkg.desired.sourcePackage ().picked())
+ if (pkg.desired.sourcePackage ().picked() || IncludeSource)
{
md5sum_total_bytes += pkg.desired.sourcePackage ().source()->size;
}
--
2.12.3