[PATCH cygport] Raise an error if we package a .stackdump file
Jon Turney
jon.turney@dronecode.org.uk
Fri Jul 13 16:16:00 GMT 2018
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
More information about the Cygwin-apps
mailing list