From 5f8993177449346028f8ca4d5c74aada22d11c02 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Tue, 2 Oct 2018 15:53:32 -0400 Subject: [PATCH] Add grabbing original source tarball from github and overwriting the generated tarball with it. --- utils/do_debian_package.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/utils/do_debian_package.sh b/utils/do_debian_package.sh index 3ebc510fa..82ded025a 100755 --- a/utils/do_debian_package.sh +++ b/utils/do_debian_package.sh @@ -293,6 +293,13 @@ else SC="zoneminder_${VERSION}-${DISTRO}${PACKAGE_VERSION}_source.changes"; PPA=""; if [ "$RELEASE" != "" ]; then + # We need to use our official tarball for the original source, so grab it and overwrite our generated one. + if [ ! -e "$RELEASE.tar.gz" ]; then + echo "Grabbing official source tarball from github." + wget "https://github.com/ZoneMinder/zoneminder/archive/$RELEASE.tar.gz" + fi; + echo "Overwriting generated zoneminder_${VERSION}.orig.tar.gz with source tarball from github"; + cp "$RELEASE.tar.gz" "zoneminder_${VERSION}.orig.tar.gz" IFS='.' read -r -a VERSION <<< "$RELEASE" PPA="ppa:iconnor/zoneminder-${VERSION[0]}.${VERSION[1]}" else