Blame SOURCES/yum-langpacks-0.4.2-Add-parser-for-libreoffice-langpacks.patch

9264b9
From 1a9dbf3127391086dad5e05d016e8dcdc0a55999 Mon Sep 17 00:00:00 2001
9264b9
From: Parag Nemade <pnemade@redhat.com>
9264b9
Date: Fri, 22 Apr 2016 19:44:03 +0530
9264b9
Subject: [PATCH] Resolves:rh#1251388 - Add parser for libreoffice langpacks
9264b9
9264b9
---
9264b9
 langpacks.py | 3 +++
9264b9
 1 file changed, 3 insertions(+)
9264b9
9264b9
diff --git a/langpacks.py b/langpacks.py
9264b9
index 9b235b7..9680953 100644
9264b9
--- a/langpacks.py
9264b9
+++ b/langpacks.py
9264b9
@@ -637,10 +637,13 @@ class LanginfoCommand:
9264b9
                 # check RHEL7 release notes package
9264b9
                 if lang.find("pt_BR") != -1:
9264b9
                    relnotpkg = "Red_Hat_Enterprise_Linux-Release_Notes-7-" + "pt-BR"
9264b9
+                   list_pkgs.append("libreoffice-langpack-pt-BR")
9264b9
                 if lang.find("zh_CN") != -1:
9264b9
                    relnotpkg = "Red_Hat_Enterprise_Linux-Release_Notes-7-" + "zh-CN"
9264b9
+                   list_pkgs.append("libreoffice-langpack-zh-Hans")
9264b9
                 if lang.find("zh_TW") != -1:
9264b9
                    relnotpkg = "Red_Hat_Enterprise_Linux-Release_Notes-7-" + "zh-TW"
9264b9
+                   list_pkgs.append("libreoffice-langpack-zh-Hant")
9264b9
                 for pkg in langpack_pkgs:
9264b9
                     if pkg.find(relnotpkg) != -1:
9264b9
                        list_pkgs.append(pkg)
9264b9
-- 
9264b9
1.8.3.1
9264b9