From e7360d05462b212de07c8f9b3f2c8c9dc2d396b3 Mon Sep 17 00:00:00 2001 From: Markus Frosch <markus.frosch@icinga.com> Date: Fri, 30 Jul 2021 10:48:01 +0200 Subject: [PATCH] deb: Exclude any existing debian scripts in source tarball --- icinga-build-deb-source | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/icinga-build-deb-source b/icinga-build-deb-source index 29239ed..0703e3d 100755 --- a/icinga-build-deb-source +++ b/icinga-build-deb-source @@ -33,6 +33,7 @@ else exit 1 fi +# create build tree and copy debian scripts ( set -ex mkdir "${BUILDDIR}" "${BUILDDIR}/${ICINGA_BUILD_PROJECT}" @@ -97,8 +98,13 @@ else tarball="${BUILDDIR}/${tarball}" fi -# extracting source into package source tree -tar xf "${tarball}" --strip 1 -C "${BUILDDIR}/${ICINGA_BUILD_PROJECT}"/ +# extracting source into package source tree, exclude any existing debian scripts +tar xvf "${tarball}" \ + --exclude="debian" \ + --exclude="debian/*" \ + --strip 1 \ + -C "${BUILDDIR}/${ICINGA_BUILD_PROJECT}"/ +exit 1 # build source debian package cd "${BUILDDIR}/${ICINGA_BUILD_PROJECT}" -- GitLab