|
|
@ -24,7 +24,6 @@ __copyright__ = "Copyright (c) 2004 Cyril Jaquier, 2011-2012 Lee Clemens, 2012 Y |
|
|
|
__license__ = "GPL" |
|
|
|
__license__ = "GPL" |
|
|
|
|
|
|
|
|
|
|
|
import logging |
|
|
|
import logging |
|
|
|
from distutils.version import LooseVersion |
|
|
|
|
|
|
|
import os |
|
|
|
import os |
|
|
|
from os.path import dirname, sep as pathsep |
|
|
|
from os.path import dirname, sep as pathsep |
|
|
|
|
|
|
|
|
|
|
@ -38,7 +37,7 @@ from ..helpers import getLogger |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if not hasattr(pyinotify, '__version__') \ |
|
|
|
if not hasattr(pyinotify, '__version__') \ |
|
|
|
or LooseVersion(pyinotify.__version__) < '0.8.3': # pragma: no cover |
|
|
|
or pyinotify.__version__.split(".") < '0.8.3'.split("."): # pragma: no cover |
|
|
|
raise ImportError("Fail2Ban requires pyinotify >= 0.8.3") |
|
|
|
raise ImportError("Fail2Ban requires pyinotify >= 0.8.3") |
|
|
|
|
|
|
|
|
|
|
|
# Verify that pyinotify is functional on this system |
|
|
|
# Verify that pyinotify is functional on this system |
|
|
|