mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
tzdata: fix update on system with leftover timezone
This commit is contained in:
parent
3aa90b3257
commit
b070910565
2 changed files with 12 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'tzutils'
|
# Template file for 'tzutils'
|
||||||
pkgname=tzutils
|
pkgname=tzutils
|
||||||
version=2022a
|
version=2022a
|
||||||
revision=2
|
revision=3
|
||||||
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"
|
||||||
|
|
11
srcpkgs/tzutils/tzdata.INSTALL
Executable file
11
srcpkgs/tzutils/tzdata.INSTALL
Executable 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
|
Loading…
Add table
Reference in a new issue