]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
k8s: Fix pip fixed value with variables pip path.
authorfrancisco.garcia <francisco.garcia@baculasystems.com>
Fri, 14 Jul 2023 08:33:35 +0000 (10:33 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 14 Sep 2023 11:57:01 +0000 (13:57 +0200)
bacula/src/plugins/fd/kubernetes-backend/Makefile

index e9aa621d952a67010f85eb0aa77f1efcfd708cb5..faff13978c7f77af04dc0c244c3543cbb5cd664c 100644 (file)
@@ -13,7 +13,7 @@ PYTHON_PROG=$(shell ./get_python PYTHON)
 PYTHONPATH=$(shell ./get_python PYTHONPATH)
 PYTHON_PREFIX=$(shell ./get_python PYTHON_PREFIX)
 
-PIP_MAJOR_VERSION=$(shell pip --version | awk '{print $$2}' | awk -v FS=\. '{print $$1}')
+PIP_MAJOR_VERSION=$(shell $(PIP_PROG) --version | $(AWK) '{print $$2}' | $(AWK) -v FS=\. '{print $$1}')
 PIP_OPTIONS = --user
 # Implemented PEP 668: https://pip.pypa.io/en/stable/news/#v23-0-1 we need --break-system-packages option.
 ifeq ($(shell test $(PIP_MAJOR_VERSION) -ge 23; echo $$?),0)