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' # Template file for 'tzutils'
pkgname=tzutils pkgname=tzutils
version=2022c version=2022c
revision=1 revision=2
bootstrap=yes bootstrap=yes
wrksrc="tzdb-${version}" wrksrc="tzdb-${version}"
short_desc="Time zone and daylight-saving time utilities" 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 # Due to some reasons, some old timezone was kept
# The latest one would be Canada/East-Saskatchewan in 2017c # The latest one would be Canada/East-Saskatchewan in 2017c
# Don't force remove on everyone since it will spit error on update # Don't force remove on everyone since it will spit error on update
if [ ! -L usr/share/zoneinfo/right ] && if [ -f usr/share/zoneinfo/right/Canada/East-Saskatchewan ]; then
[ -f usr/share/zoneinfo/right/Canada/East-Saskatchewan ]; then rm -rf usr/share/zoneinfo/posix
rm -rf usr/share/zoneinfo/right rm -rf usr/share/zoneinfo/right
fi fi
;; ;;