FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux General Discussion

 
 
LinkBack Thread Tools
 
Old 06-01-2012, 08:53 AM
Vratislav Podzimek
 
Default Fix the error message when removing a layout not added before

---
pyanaconda/xklavier.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/pyanaconda/xklavier.py b/pyanaconda/xklavier.py
index da95794..4631e0a 100755
--- a/pyanaconda/xklavier.py
+++ b/pyanaconda/xklavier.py
@@ -224,7 +224,9 @@ class XklWrapper(object):
layouts_variants = zip(self._rec.layouts, self._rec.variants)

if not (layout, variant) in layouts_variants:
- raise XklWrapperError("'%s (%s)' not in the list of added layouts")
+ msg = "'%s (%s)' not in the list of added layouts" % (layout,
+ variant)
+ raise XklWrapperError(msg)

idx = layouts_variants.index((layout, variant))
new_layouts = self._rec.layouts[:idx] + self._rec.layouts[(idx + 1):]
--
1.7.4.4

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 08:25 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org