richardphibel / rpms / systemd

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