From e6b8d0dabcd38d58827f01825b9c594700381c95 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 12 Feb 2019 16:18:21 -0500 Subject: [PATCH] Make dependencies adaptable for wheezy and non-wheezy Newer distributions we have different requirements. --- confluent_server/builddeb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/confluent_server/builddeb b/confluent_server/builddeb index 32719749..31d13072 100755 --- a/confluent_server/builddeb +++ b/confluent_server/builddeb @@ -25,8 +25,13 @@ py2dsc dist/*.tar.gz shopt -s extglob cd deb_dist/!(*.orig)/ if [ "$DPKGNAME" = "confluent-server" ]; then - sed -i 's/^\(Depends:.*\)/\1, python-lxml, python-eficompressor, python-pycryptodomex/' debian/control + if grep wheezy /etc/os-release; then + sed -i 's/^\(Depends:.*\)/\1, confluent-client, python-lxml, python-eficompressor, python-pycryptodomex/' debian/control + else + sed -i 's/^\(Depends:.*\)/\1, confluent-client, python-lxml, python-eficompressor, python-pycryptodome/' debian/control + fi fi + dpkg-buildpackage -rfakeroot -uc -us -i if [ $? -ne 0 ]; then echo "[ERROR] rpmbuild returned non-zero, run: rpmbuild -ba ~/rpmbuild/SPECS/$PKGNAME.spec"