]> git.ipfire.org Git - pakfire.git/commitdiff
Break if python version could not be detected.
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 4 Oct 2011 00:55:03 +0000 (02:55 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 4 Oct 2011 00:55:03 +0000 (02:55 +0200)
Makeconfig

index 6f4be9f939d129f311bf906279014beeb796d33e..71e5950e1ccede61bbfb96be7305f856a173ec13 100644 (file)
@@ -23,6 +23,10 @@ endif
 
 # Get the version and configuration of the python interpreter.
 PYTHON_VERSION = $(shell python -c "import platform; print '.'.join(platform.python_version_tuple()[:2])")
+ifeq "$(PYTHON_VERSION)" ""
+  $(error Could not determine the version of the python interpreter.)
+endif
+
 PYTHON_CC      = $(CC) -pthread -fPIC
 PYTHON_CFLAGS  = $(shell python-config --cflags)
 PYTHON_MODULES = pakfire pakfire/packages pakfire/repository