tzdata: fix update on system with leftover timezone
This commit is contained in:
parent
3aa90b3257
commit
b070910565
|
@ -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"
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue