fix for bug #343821: path is not appended but inserted first

debian-releases/etch
Yaroslav Halchenko 2005-12-19 15:50:01 +00:00
parent 687c2775ad
commit 7d9c08bc22
2 changed files with 11 additions and 2 deletions

8
debian/changelog vendored
View File

@ -1,3 +1,11 @@
fail2ban (0.6.0-2) unstable; urgency=low
* fail2ban path is inserted first in the list to avoid a conflict with
existing elsewhere modules with the same names. (Thanks for report and
patch to Nick Craig-Wood) (closes: #343821)
-- Yaroslav Halchenko <debian@onerussian.com> Mon, 19 Dec 2005 17:44:58 +0200
fail2ban (0.6.0-1) unstable; urgency=low fail2ban (0.6.0-1) unstable; urgency=low
* Merged with the latest stable upstream release. That incure some * Merged with the latest stable upstream release. That incure some

View File

@ -28,8 +28,9 @@ __license__ = "GPL"
import sys, traceback, logging import sys, traceback, logging
# Appends our own modules path. # Inserts our own modules path first in the list
sys.path.append("/usr/share/fail2ban") # fix for bug #343821
sys.path.insert(1, "/usr/share/fail2ban")
# Now we can import our modules. # Now we can import our modules.
import fail2ban import fail2ban