valeriyvdovin / rpms / systemd

Forked from rpms/systemd 4 years ago
Clone

Blame SOURCES/0360-test-make-install_keymaps-optionally-install-more-ke.patch

c2dfb7
From 8dbd01f7018947fd15d00c25b1aa0ffc72278cb6 Mon Sep 17 00:00:00 2001
c2dfb7
From: Yu Watanabe <watanabe.yu+github@gmail.com>
c2dfb7
Date: Wed, 19 Sep 2018 10:54:28 +0900
c2dfb7
Subject: [PATCH] test: make install_keymaps() optionally install more keymaps
c2dfb7
c2dfb7
(cherry picked from commit ad931fee506e1313e8a520ae0ecc1c8e275d9941)
c2dfb7
c2dfb7
Resolves: #1823767
c2dfb7
---
c2dfb7
 test/test-functions | 10 ++++++++++
c2dfb7
 1 file changed, 10 insertions(+)
c2dfb7
c2dfb7
diff --git a/test/test-functions b/test/test-functions
c2dfb7
index 546928c516..0938e6e826 100644
c2dfb7
--- a/test/test-functions
c2dfb7
+++ b/test/test-functions
c2dfb7
@@ -630,6 +630,16 @@ install_keymaps() {
c2dfb7
             [[ -f $i ]] || continue
c2dfb7
             inst $i
c2dfb7
     done
c2dfb7
+
c2dfb7
+    # When it takes any argument, then install more keymaps.
c2dfb7
+    if [[ -n $1 ]]; then
c2dfb7
+        for i in \
c2dfb7
+        /usr/lib/kbd/keymaps/i386/*/* \
c2dfb7
+        /usr/lib/kbd/keymaps/legacy/i386/*/*; do
c2dfb7
+            [[ -f $i ]] || continue
c2dfb7
+            inst $i
c2dfb7
+        done
c2dfb7
+    fi
c2dfb7
 }
c2dfb7
 
c2dfb7
 install_zoneinfo() {