rpm/rpm-5.4.10-python3-no-egg-provides.patch

12 lines
614 B
Diff

diff -Naur rpm-5.4.10.orig/scripts/pythoneggs.py rpm-5.4.10/scripts/pythoneggs.py
--- rpm-5.4.10/scripts/pythoneggs.py 2012-05-08 02:34:19.000000000 +0400
+++ rpm-5.4.10.orig/scripts/pythoneggs.py 2013-06-14 12:44:15.551212810 +0400
@@ -119,6 +119,8 @@
metadata = FileMetadata(f)
dist = Distribution.from_location(path_item, dist_name, metadata)
if Provides:
+ if f.find('python3') > 0:
+ continue
# If egg metadata says package name is python, we provide python(abi)
if dist.key == 'python':
name = 'python(abi)'