teknoraver / rpms / systemd

Forked from rpms/systemd 3 months ago
Clone

Blame SOURCES/0357-test-introduce-install_zoneinfo.patch

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