This is the mail archive of the cygwin-apps mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH cygport] Raise an error if we package a .stackdump file


If we end up with a .stackdump file in a package, this tends to suggest
something has gone wrong somewhere, so raise an error.
---
 lib/pkg_pkg.cygpart | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/lib/pkg_pkg.cygpart b/lib/pkg_pkg.cygpart
index a7624ff..69e5233 100644
--- a/lib/pkg_pkg.cygpart
+++ b/lib/pkg_pkg.cygpart
@@ -213,7 +213,7 @@ __pkg_pkgcheck() {
 	local tmp2="${T}/tmpfind.log";
 
 	cd ${D};
-	__step "Checking packages for missing or duplicate files";
+	__step "Checking packages for unexpected, missing or duplicate files";
 
 	rm -f ${tmp1} ${tmp2};
 
@@ -243,6 +243,13 @@ __pkg_pkgcheck() {
 	sort < ${tmp1} > "${tmp1}.sorted";
 	mv -f "${tmp1}.sorted" ${tmp1};
 
+	if grep "\.stackdump$" ${tmp1} > ${T}/pkgcheck.lst
+	then
+		warning "Packages contain unexpected files:";
+		cat ${T}/pkgcheck.lst;
+		error "Packages contain unexpected files:";
+	fi
+
 	find * -type f -o -type l | sort > ${tmp2}
 
 	if ! diff -U 0 ${tmp2} ${tmp1} > /dev/null
-- 
2.17.0


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]