[PATCH 1/3] Add comment to the begining of generated xorg.conf file
Vratislav Podzimek
vpodzime at redhat.com
Thu Oct 4 20:48:10 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 fb3f7ef..78cf393 100755
--- a/pyanaconda/keyboard.py
+++ b/pyanaconda/keyboard.py
@@ -79,10 +79,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