Hello community,
here is the log from the commit of package kiwi-config-openSUSE for
openSUSE:Factory checked in at 2014-10-15 08:51:50
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/kiwi-config-openSUSE (Old)
and /work/SRC/openSUSE:Factory/.kiwi-config-openSUSE.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "kiwi-config-openSUSE"
Changes:
--------
---
/work/SRC/openSUSE:Factory/kiwi-config-openSUSE/kiwi-config-openSUSE.changes
2014-09-23 10:42:54.000000000 +0200
+++
/work/SRC/openSUSE:Factory/.kiwi-config-openSUSE.new/kiwi-config-openSUSE.changes
2014-10-15 08:52:30.000000000 +0200
@@ -1,0 +2,5 @@
+Tue Oct 14 13:05:41 UTC 2014 - [email protected]
+
+- convert yast script to ruby (bnc#897483)
+
+-------------------------------------------------------------------
Old:
----
getcountrydata.ycp
New:
----
getcountrydata.rb
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ kiwi-config-openSUSE.spec ++++++
--- /var/tmp/diff_new_pack.ZYDWKT/_old 2014-10-15 08:52:31.000000000 +0200
+++ /var/tmp/diff_new_pack.ZYDWKT/_new 2014-10-15 08:52:31.000000000 +0200
@@ -47,7 +47,7 @@
Source16: langset.service
Source17: 99-ignore-live-usb.fdi
Source20: geturls.xsl
-Source22: getcountrydata.ycp
+Source22: getcountrydata.rb
Source23: langset.sh
Source26: xdm-liveinstall.patch
Source27: SoftLocks
++++++ getcountrydata.rb ++++++
# encoding: utf-8
module Yast
class GetcountrydataClient < Client
def main
Yast.import "Language"
Yast.import "Keyboard"
Yast.import "Console"
langs = Language.GetLanguagesMap(true)
consolefonts = SCR.Read(path(".target.yast2"), "consolefonts.ycp")
timezonemap = Language.GetLang2TimezoneMap(true)
dir = ENV["OUTPUTDIR"]
raise "OUTPUTDIR is not set" unless dir
Builtins.foreach(langs) do |lang, ll|
suffix = ll[2] || ""
fqlanguage = lang + suffix
kbd = Keyboard.GetKeyboardForLanguage(lang, "us")
# does not really set keyboard, only fills some data
Keyboard.SetKeyboard(kbd)
# set language for encoding
WFM.SetLanguage(fqlanguage)
yast_kbd = "#{kbd},#{Keyboard.kb_model}"
consolefont = consolefonts[fqlanguage] || consolefonts[lang] || []
font = consolefont[0] || ""
unicodeMap = consolefont[1] || ""
screenMap = consolefont[2] || ""
magic = consolefont[3] || ""
timezone = timezonemap[lang] || ""
contents =
"RC_LANG: #{fqlanguage}\n" +
"CONSOLE_FONT: #{font}\n" +
"CONSOLE_SCREENMAP: #{screenMap}\n" +
"CONSOLE_UNICODEMAP: #{unicodeMap}\n" +
"CONSOLE_MAGIC: #{magic}\n" +
"KEYTABLE: #{Keyboard.keymap}\n" +
"YAST_KEYBOARD: #{yast_kbd}\n" +
"COMPOSETABLE: #{Keyboard.compose_table}\n" +
"TIMEZONE: #{timezone}\n" +
"CONSOLE_ENCODING: #{WFM.GetEncoding}"
contents << "\nRC_LC_MESSAGES: zh_TW.UTF-8" if lang == "zh_HK"
x11data = Keyboard.GetX11KeyData(Keyboard.keymap)
Builtins.foreach(x11data) do |key, val|
contents << "\n#{key}: #{val}"
end
contents << "\n"
SCR.Write(path(".target.string"), dir + fqlanguage, contents)
end
end
end
end
Yast::GetcountrydataClient.new.main
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]