anitazha / rpms / systemd

Forked from rpms/systemd 3 years ago
Clone
4cad4c
From 73781e52f331f816924232f96c7bfc92ee763e70 Mon Sep 17 00:00:00 2001
4cad4c
From: Yu Watanabe <watanabe.yu+github@gmail.com>
4cad4c
Date: Wed, 12 Sep 2018 18:20:31 +0900
4cad4c
Subject: [PATCH] test: introduce install_zoneinfo()
4cad4c
4cad4c
But it is not called by default.
4cad4c
4cad4c
(cherry picked from commit 7d10ec1cda8fed20c36b16d2387f529583645cda)
4cad4c
4cad4c
Resolves: #1823767
4cad4c
---
4cad4c
 test/test-functions | 7 +++++++
4cad4c
 1 file changed, 7 insertions(+)
4cad4c
4cad4c
diff --git a/test/test-functions b/test/test-functions
4cad4c
index f7ca3ad975..4d76ed1f82 100644
4cad4c
--- a/test/test-functions
4cad4c
+++ b/test/test-functions
4cad4c
@@ -628,6 +628,13 @@ install_keymaps() {
4cad4c
     done
4cad4c
 }
4cad4c
 
4cad4c
+install_zoneinfo() {
4cad4c
+    for i in /usr/share/zoneinfo/{,*/,*/*/}*; do
4cad4c
+        [[ -f $i ]] || continue
4cad4c
+        inst $i
4cad4c
+    done
4cad4c
+}
4cad4c
+
4cad4c
 install_fonts() {
4cad4c
     for i in \
4cad4c
         /usr/lib/kbd/consolefonts/eurlatgr* \