BlockHosts-2.5.0-1.noarch.rpm on CentOS 5.5 and Python

Hello,

We are using BlockHosts-1.1.0-1 on CentOS 5.5. Works great.

We are willing to update to last version (BlockHosts-2.5.0-1.noarch.rpm).

We tried to update on a test Virtual Machine, with same OS and same Python version (2.4.3) , same Dovecot, same Proftpd, same OpenSSH... than prod machines.

Worked great. Just had to tweak the regexp for Dovecot.

But then, we tried to update Blockhost on a production machine, and got this error :

error: Failed dependencies:
python(abi) = 2.6 is needed by BlockHosts-2.5.0-1.noarch

Does version 2.5.0 indeed need Python 2.6 ? Does someone have an idea about the origin of the problem ?

Thanks in advance.

Miguel Cordas.

mc@mcsi.ch

bdist_rpm noarch problem

Looks like the Fedora 13 bdist_rpm built BlockHosts-2.5.0-1.noarch.rpm distribution automatically inserted a Python 2.6 dependency. Can't find a easy fix, will probably use older bdist_rpm to avoid this problem in the future, for now, the workarounds are to force install the package, or install from source.

rpm -ivh --nodeps BlockHosts-2.5.0-1.noarch.rpm
or
python setup.py install --force (see INSTALL file for details)