From 445dec1c38e67adbf9c18ee2179f6c67d342e3aa Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sat, 21 Aug 2021 03:19:18 -0400 Subject: [PATCH] Ensure pycache files are removed on deb creation --- build-deb.sh | 1 + build-unstable-deb.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/build-deb.sh b/build-deb.sh index 0f83e88a..ad0de68a 100755 --- a/build-deb.sh +++ b/build-deb.sh @@ -2,6 +2,7 @@ ver="$( head -1 debian/changelog | awk -F'[()-]' '{ print $2 }' )" git pull rm ../pvc_* +find . -name "__pycache__" -exec rm -r {} \; dh_make -p pvc_${ver} --createorig --single --yes dpkg-buildpackage -us -uc dh_clean diff --git a/build-unstable-deb.sh b/build-unstable-deb.sh index bfbc51ed..3635b70d 100755 --- a/build-unstable-deb.sh +++ b/build-unstable-deb.sh @@ -23,6 +23,7 @@ pvc (${new_ver}) unstable; urgency=medium -- Joshua Boniface $( date -R ) EOF +find . -name "__pycache__" -exec rm -r {} \; # Build source tarball dh_make -p pvc_${new_ver} --createorig --single --yes # Build packages