diff -urN rpm-5.4.10-orig/lib/rpmfc.c rpm-5.4.10-patched/lib/rpmfc.c --- rpm-5.4.10-orig/lib/rpmfc.c 2018-06-21 16:46:02.416087354 +1000 +++ rpm-5.4.10-patched/lib/rpmfc.c 2018-06-21 16:54:06.839041871 +1000 @@ -1468,6 +1468,16 @@ else if (_suffix(s, "qmldir")) ftype = "qml file"; + /* XXX all files with extension ".egg" are ASCII text for now. */ + /* XXX python code examples from them give false Python script result. */ + else if (_suffix(s, ".egg")) + ftype = "ASCII text"; + + /* XXX all files with extension ".egg-info" are ASCII text for now. */ + /* XXX python code examples from them give false Python script result. */ + else if (_suffix(s, ".egg-info")) + ftype = "ASCII text"; + /* XXX all files with extension ".php" are PHP for now. */ else if (_suffix(s, ".php")) ftype = "PHP script text";