From 3b204ae1aae7e3b7a614ad267ff8d93b474b7b6b Mon Sep 17 00:00:00 2001
From: Aleksandr Vodianov <aleksandr.vodianov@demlabs.net>
Date: Mon, 13 Sep 2021 13:35:14 +0300
Subject: [PATCH] remove deb pkges with dbgsym

---
 linux/debian/scripts/compile_and_pack.sh | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/linux/debian/scripts/compile_and_pack.sh b/linux/debian/scripts/compile_and_pack.sh
index b64dfb7..ebb58ad 100755
--- a/linux/debian/scripts/compile_and_pack.sh
+++ b/linux/debian/scripts/compile_and_pack.sh
@@ -28,7 +28,11 @@ error=0
 #2DO: add trap command to clean the sources on exit.
 trap cleanup SIGINT
 codename=$(lsb_release -a | grep Codename | cut -f2)
-dpkg-buildpackage -J -us --changes-option=--build=any -uc && mkdir -p build && \
+dpkg-buildpackage -J -us --changes-option=--build=any -uc
+if [[ $(ls .. | grep 'dbgsym') != "" ]]; then
+	rm -f *dbgsym*
+fi
+mkdir -p build && \
 for filepkg in $(ls .. | grep .deb | grep -v $codename); do
 	mv ../$filepkg build/$filepkg
 done || error=$?
-- 
GitLab