From be9bbe950938ab5a222db7eaf351f609657015f0 Mon Sep 17 00:00:00 2001 From: Razvan Crainea Date: Fri, 7 Feb 2025 16:27:21 +0200 Subject: [PATCH] debian: mongodb package should check for libmongoc-1.0-0t64 package too --- .../debian/opensips-mongodb-module.preinst | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/packaging/debian/opensips-mongodb-module.preinst b/packaging/debian/opensips-mongodb-module.preinst index 2ecf52ef17c..f8fa8877872 100644 --- a/packaging/debian/opensips-mongodb-module.preinst +++ b/packaging/debian/opensips-mongodb-module.preinst @@ -1,17 +1,11 @@ #!/bin/sh #DEBHELPER# -set -e -LIBMONGOC_NAME=libmongoc-1.0-0 +dpkg -s libmongoc-1.0-0 > /dev/null && exit 0 +dpkg -s libmongoc-1.0-0t64 > /dev/null && exit 0 -# check if libmongoc is installed -dpkg -s $LIBMONGOC_NAME > /dev/null -if [ "$?" -ne "0" ] -then - echo "This packages was not built for your release!" - echo "opensips-mongodb-module wasn't installed and you cannot use it in your script!" - exit 1 -fi - -exit 0 +# no known library installed +echo "This packages was not built for your release!" +echo "opensips-mongodb-module wasn't installed and you cannot use it in your script!" +exit 1