From 04481c13cf05e10db5c05a66082aa41173c4a715 Mon Sep 17 00:00:00 2001 From: Harendra Kumar Date: Mon, 21 Jun 2021 19:54:15 +0530 Subject: [PATCH] Remove .packcheck before each sdist build This makes the sdist build slower/not incremental but it would be reliable. --- packcheck.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packcheck.sh b/packcheck.sh index a4d82a1..ac31942 100755 --- a/packcheck.sh +++ b/packcheck.sh @@ -1292,6 +1292,14 @@ create_and_unpack_pkg_dist() { exit 1 fi + # XXX We could keep the sdist build incremental if we could keep the file + # modified/creation times same as the original file. However, we also need to + # make sure that we remove any additional files that have been deleted in the + # original tree. To keep it simple and reliable as of now we just remove the + # whole thing and create it fresh. + + run_verbose rm -rf .packcheck || exit 1 + # Unpack the tar inside .packcheck directory mkdir -p .packcheck || exit 1