Skip to content
Snippets Groups Projects
Commit e7360d05 authored by Markus Frosch's avatar Markus Frosch
Browse files

deb: Exclude any existing debian scripts in source tarball

parent aa2b6ea2
No related branches found
No related tags found
No related merge requests found
Pipeline #19490 passed
......@@ -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}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment