diff options
author | Vratislav Podzimek <vpodzime@redhat.com> | 2012-10-05 11:48:02 +0200 |
---|---|---|
committer | Vratislav Podzimek <vpodzime@redhat.com> | 2012-10-12 15:46:47 +0200 |
commit | dce36fd01334d291189f1bdfb5cfbea85bc48db7 (patch) | |
tree | 144c676a535501c49a0d1946e5e66360402a0c1b | |
parent | 0adc6b0a923a6386746f6fa681012b3846ae33bc (diff) | |
download | anaconda-dce36fd01334d291189f1bdfb5cfbea85bc48db7.tar.gz anaconda-dce36fd01334d291189f1bdfb5cfbea85bc48db7.tar.xz anaconda-dce36fd01334d291189f1bdfb5cfbea85bc48db7.zip |
Don't write XkbVariants if none are specified
-rwxr-xr-x | pyanaconda/keyboard.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pyanaconda/keyboard.py b/pyanaconda/keyboard.py index a1c6bd193..0cfcd6b60 100755 --- a/pyanaconda/keyboard.py +++ b/pyanaconda/keyboard.py @@ -93,8 +93,10 @@ def get_layouts_xorg_conf(keyboard): ret += '"' + ','.join(layouts) + '"\n' #variants - ret += '\tOption\t"XkbVariant"\t' - ret += '"' + ','.join(variants) + '"\n' + if any(variants): + #write out this line only if some variants are specified + ret += '\tOption\t"XkbVariant"\t' + ret += '"' + ','.join(variants) + '"\n' #switching #TODO: add option for switching combination |