diff options
author | Per Øyvind Karlsen <peroyvind@mandriva.org> | 2010-10-31 18:06:57 +0000 |
---|---|---|
committer | Per Øyvind Karlsen <peroyvind@mandriva.org> | 2010-10-31 18:06:57 +0000 |
commit | 2de60c361b9ea405fc7084883f9a46440c40b8a5 (patch) | |
tree | 2f43e089521a19f7c2f850d2f970b1d984ea6693 | |
parent | 7ce403b74407de3c20e89202f9ad1fd9240e315f (diff) | |
download | rpm-setup-2de60c361b9ea405fc7084883f9a46440c40b8a5.tar rpm-setup-2de60c361b9ea405fc7084883f9a46440c40b8a5.tar.gz rpm-setup-2de60c361b9ea405fc7084883f9a46440c40b8a5.tar.bz2 rpm-setup-2de60c361b9ea405fc7084883f9a46440c40b8a5.tar.xz rpm-setup-2de60c361b9ea405fc7084883f9a46440c40b8a5.zip |
* don't add redundant python(abi) requires on paths
* fix versioned python(abi) requires on paths to be '>=', not '=='
-rwxr-xr-x | pythoneggs.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pythoneggs.py b/pythoneggs.py index a626873..ce92fb1 100755 --- a/pythoneggs.py +++ b/pythoneggs.py @@ -59,7 +59,9 @@ for f in files: platlib = get_python_lib(standard_lib=1, plat_specific=1).split(version[:3])[0] for lib in (purelib, platlib): if lib in f: - py_deps[name].append(('==',f.split(lib)[1].split(sep)[0])) + spec = ('>=',f.split(lib)[1].split(sep)[0]) + if not spec in py_deps[name]: + py_deps[name].append(spec) if lower.endswith('.egg') or \ lower.endswith('.egg-info') or \ lower.endswith('.egg-link'): |