mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
CONFIGURE: Fix detection of pylint
If configure script was executed with --enable-pylint then it behaved the same as --disable-pylint. It does not make any sense. Resolves: https://fedorahosted.org/freeipa/ticket/6604 Reviewed-By: Christian Heimes <cheimes@redhat.com> Reviewed-By: Tomas Krizek <tkrizek@redhat.com>
This commit is contained in:
committed by
Martin Babinsky
parent
6d52c0fe6a
commit
5c18feaa20
20
configure.ac
20
configure.ac
@@ -446,16 +446,18 @@ AM_CONDITIONAL([WITH_POLINT], [test "x${enable_i18ntests}" == "xyes"])
|
||||
AC_ARG_ENABLE([pylint],
|
||||
AS_HELP_STRING([--disable-pylint],
|
||||
[skip Pylint in make lint target]),
|
||||
[PYLINT=no],
|
||||
[PYLINT=yes
|
||||
AC_MSG_CHECKING([for Pylint])
|
||||
$PYTHON -m pylint --version > /dev/null
|
||||
if test "$?" != "0"; then
|
||||
AC_MSG_ERROR([cannot find pylint for $PYTHON])
|
||||
fi
|
||||
AC_MSG_RESULT([yes])
|
||||
]
|
||||
[PYLINT=$enableval],
|
||||
[PYLINT=yes]
|
||||
)
|
||||
if test x$PYLINT != xno; then
|
||||
AC_MSG_CHECKING([for Pylint])
|
||||
$PYTHON -m pylint --version > /dev/null
|
||||
if test "$?" != "0"; then
|
||||
AC_MSG_ERROR([cannot find pylint for $PYTHON])
|
||||
else
|
||||
AC_MSG_RESULT([yes])
|
||||
fi
|
||||
fi
|
||||
AC_SUBST([PYLINT])
|
||||
AM_CONDITIONAL([WITH_PYLINT], [test "x${PYLINT}" != "xno"])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user