--- ./repo-rss.py_orig	2011-08-10 10:20:19 -0500
+++ ./repo-rss.py	2017-09-15 04:55:08 -0500
@@ -15,12 +15,27 @@
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 # seth vidal 2005 (c) etc etc
 
+# Check if libxml2-python is installed. This is just avoid having entire yum-utils package
+# dependency on libxml2 for this single utility.
+import sys
+import rpm
+ts = rpm.TransactionSet()
+mi = ts.dbMatch()
+found_xml = 0
+for h in mi:
+    if h['name'] == "libxml2-python":
+        found_xml = 1
+        break
+
+if found_xml == 0:
+    print "This commad needs to have libxml2-python rpm installed"
+    sys.exit()
+
 import yum
 import yum.Errors
 from yum.misc import getCacheDir, to_unicode
 from yum.comps import Comps, CompsException
 from yum.Errors import RepoMDError
-import sys
 import os
 import libxml2
 import time
