[PATCH 1/5] Add comment to the begining of generated xorg.conf file
Vratislav Podzimek
vpodzime at redhat.com
Fri Oct 5 17:32:03 UTC 2012
We should indicate where does this file come from. Moreover, without this
comment vim doesn't turn on the syntax highlighting automatically.
Signed-off-by: Vratislav Podzimek <vpodzime at redhat.com>
---
pyanaconda/keyboard.py | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/pyanaconda/keyboard.py b/pyanaconda/keyboard.py
index 6817a15..abfd184 100755
--- a/pyanaconda/keyboard.py
+++ b/pyanaconda/keyboard.py
@@ -81,10 +81,13 @@ def get_layouts_xorg_conf(keyboard):
layouts.append(layout)
variants.append(variant)
+ #comment
+ ret = "#This file was generated by the Anaconda installer\n"
+
#section header
- ret = 'Section "InputClass"\n'\
- '\tIdentifier\t"kickstart"\n'\
- '\tMatchIsKeyboard\t"on"\n'
+ ret += 'Section "InputClass"\n'\
+ '\tIdentifier\t"anaconda-keyboard"\n'\
+ '\tMatchIsKeyboard\t"on"\n'
#layouts
ret += '\tOption\t"XkbLayout"\t'
--
1.7.11.4
More information about the anaconda-patches
mailing list