tzdata: remove posix if right/Canada/East-Saskatchewan exist

Chance are both of them exist
This commit is contained in:
Đoàn Trần Công Danh 2022-08-30 14:37:05 +07:00
parent 7aac13af05
commit 678af1f476
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'tzutils'
pkgname=tzutils
version=2022c
revision=1
revision=2
bootstrap=yes
wrksrc="tzdb-${version}"
short_desc="Time zone and daylight-saving time utilities"

View File

@ -3,8 +3,8 @@ pre)
# Due to some reasons, some old timezone was kept
# The latest one would be Canada/East-Saskatchewan in 2017c
# Don't force remove on everyone since it will spit error on update
if [ ! -L usr/share/zoneinfo/right ] &&
[ -f usr/share/zoneinfo/right/Canada/East-Saskatchewan ]; then
if [ -f usr/share/zoneinfo/right/Canada/East-Saskatchewan ]; then
rm -rf usr/share/zoneinfo/posix
rm -rf usr/share/zoneinfo/right
fi
;;