Blame SOURCES/yum-langpacks-0.4.2-fix-langlist-command.patch

674536
diff -urN yum-langpacks-0.4.2/langpacks.py yum-langpacks-0.4.2.new/langpacks.py
674536
--- yum-langpacks-0.4.2/langpacks.py	2015-02-24 14:15:49.684389233 +0530
674536
+++ yum-langpacks-0.4.2.new/langpacks.py	2015-02-24 14:17:09.517381490 +0530
674536
@@ -595,10 +595,14 @@
674536
 
674536
     def doCommand(self, base, basecmd, extcmds):
674536
         list = read_installed_langpacks()
674536
-        print "Installed languages:"
674536
-        for item in list:
674536
-            if not item.startswith("#"):
674536
-                print "\t" + lc_to_langname(item)
674536
+        if list:
674536
+           print "Installed languages:"
674536
+           for item in list:
674536
+               if not item.startswith("#"):
674536
+                   print "\t" + lc_to_langname(item)
674536
+        else:
674536
+            print("No langpacks installed")
674536
+
674536
         return 0, [""]
674536
 
674536
 class LanginfoCommand: