tzdata: fix update on system with leftover timezone

This commit is contained in:
Đoàn Trần Công Danh 2022-07-31 19:12:48 +07:00 committed by Đoàn Trần Công Danh
parent 3aa90b3257
commit b070910565
2 changed files with 12 additions and 1 deletions

View File

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

11
srcpkgs/tzutils/tzdata.INSTALL Executable file
View File

@ -0,0 +1,11 @@
case "${ACTION}" in
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 [ -f usr/share/zoneinfo/posix/Canada/East-Saskatchewan ]; then
rm -rf usr/share/zoneinfo/posix
rm -rf usr/share/zoneinfo/right
fi
;;
esac