Harald Hoyer fe68ba
From c9b5165daa666d5aec44a3ac6c56786b8df1b58f Mon Sep 17 00:00:00 2001
Harald Hoyer fe68ba
From: Daniel Molkentin <dmolkentin@suse.com>
Harald Hoyer fe68ba
Date: Fri, 27 Apr 2018 16:59:47 +0200
Harald Hoyer fe68ba
Subject: [PATCH] 10i18n: Fix possible infinite recursion
Harald Hoyer fe68ba
Harald Hoyer fe68ba
---
Harald Hoyer fe68ba
 modules.d/10i18n/module-setup.sh | 2 +-
Harald Hoyer fe68ba
 1 file changed, 1 insertion(+), 1 deletion(-)
Harald Hoyer fe68ba
Harald Hoyer fe68ba
diff --git a/modules.d/10i18n/module-setup.sh b/modules.d/10i18n/module-setup.sh
Harald Hoyer fe68ba
index 7320a919..08971814 100755
Harald Hoyer fe68ba
--- a/modules.d/10i18n/module-setup.sh
Harald Hoyer fe68ba
+++ b/modules.d/10i18n/module-setup.sh
Harald Hoyer fe68ba
@@ -45,7 +45,7 @@ install() {
Harald Hoyer fe68ba
 
Harald Hoyer fe68ba
             for INCL in $($cmd "^include " $map | while read a a b || [ -n "$a" ]; do echo ${a//\"/}; done); do
Harald Hoyer fe68ba
                 for FN in $(find ${kbddir}/keymaps -type f -name $INCL\*); do
Harald Hoyer fe68ba
-                    findkeymap $FN
Harald Hoyer fe68ba
+                    strstr "$KEYMAPS" "$FN" || findkeymap $FN
Harald Hoyer fe68ba
                 done
Harald Hoyer fe68ba
             done
Harald Hoyer fe68ba
         done
Harald Hoyer fe68ba