daandemeyer / rpms / systemd

Forked from rpms/systemd 2 years ago
Clone
52b84b
From 1599be6d3625700ded28108c0747b000448fa5dc Mon Sep 17 00:00:00 2001
be3800
From: Yu Watanabe <watanabe.yu+github@gmail.com>
be3800
Date: Wed, 19 Sep 2018 10:54:16 +0900
be3800
Subject: [PATCH] test: add paths of keymaps in install_keymaps()
be3800
be3800
It seems that the paths of directories storing keymaps are changed.
be3800
be3800
(cherry picked from commit 83a7051ee1edbfe8cd2278477d23083beb385409)
be3800
52b84b
Resolves: #1823767
be3800
---
be3800
 test/test-functions | 6 +++++-
be3800
 1 file changed, 5 insertions(+), 1 deletion(-)
be3800
be3800
diff --git a/test/test-functions b/test/test-functions
be3800
index 4d76ed1f82..546928c516 100644
be3800
--- a/test/test-functions
be3800
+++ b/test/test-functions
be3800
@@ -619,10 +619,14 @@ install_pam() {
be3800
 }
be3800
 
be3800
 install_keymaps() {
be3800
+    # The first three paths may be deprecated.
be3800
+    # It seems now the last two paths are used by many distributions.
be3800
     for i in \
be3800
         /usr/lib/kbd/keymaps/include/* \
be3800
         /usr/lib/kbd/keymaps/i386/include/* \
be3800
-        /usr/lib/kbd/keymaps/i386/qwerty/us.*; do
be3800
+        /usr/lib/kbd/keymaps/i386/qwerty/us.* \
be3800
+        /usr/lib/kbd/keymaps/legacy/include/* \
be3800
+        /usr/lib/kbd/keymaps/legacy/i386/qwerty/us.*; do
be3800
             [[ -f $i ]] || continue
be3800
             inst $i
be3800
     done