[PATCH 3/9] Install yumdb keys for install_langs and tsflags values.

James Antill james at and.org
Wed Feb 12 23:27:09 UTC 2014


---
 yum/__init__.py |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/yum/__init__.py b/yum/__init__.py
index 622bc14..3b6ed82 100644
--- a/yum/__init__.py
+++ b/yum/__init__.py
@@ -1915,6 +1915,13 @@ much more problems).
                 txmbr_cb(txmbr, count)
             return count
         
+        oil = self.conf.override_install_langs
+        if not oil:
+            oil = rpm.expandMacro("%_install_langs")
+        if oil == 'all':
+            oil = ''
+        elif oil:
+            oil = ":".join(sorted(oil.split(':')))
         vt_st = time.time()
         self.plugins.run('preverifytrans')
         count = 0
@@ -1942,6 +1949,17 @@ much more problems).
                     if var == 'arch':     continue
                     # Skip uuid?
                     setattr(po.yumdb_info, 'var_' + var, self.conf.yumvar[var])
+                if oil:
+                    po.yumdb_info.ts_install_langs = oil
+                if 'nocontexts' in self.conf.tsflags:
+                    po.yumdb_info.tsflag_nocontexts = 'true'
+                if 'nodocs' in self.conf.tsflags:
+                    po.yumdb_info.tsflag_nodocs = 'true'
+                if 'noscripts' in self.conf.tsflags:
+                    po.yumdb_info.tsflag_noscripts = 'true'
+                if 'notriggers' in self.conf.tsflags:
+                    po.yumdb_info.tsflag_notriggers = 'true'
+
                 if hasattr(self, 'args') and self.args:
                     po.yumdb_info.command_line = ' '.join(self.args)
                 elif hasattr(self, 'cmds') and self.cmds:
-- 
1.7.7.6



More information about the Yum-devel mailing list