packages: tzdata/timezone.init - detect missing zone file in status
glen
glen at pld-linux.org
Sun Oct 31 20:29:15 CET 2010
Author: glen Date: Sun Oct 31 19:29:15 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- detect missing zone file in status
---- Files affected:
packages/tzdata:
timezone.init (1.18 -> 1.19)
---- Diffs:
================================================================
Index: packages/tzdata/timezone.init
diff -u packages/tzdata/timezone.init:1.18 packages/tzdata/timezone.init:1.19
--- packages/tzdata/timezone.init:1.18 Sun Oct 31 20:28:04 2010
+++ packages/tzdata/timezone.init Sun Oct 31 20:29:10 2010
@@ -79,7 +79,9 @@
;;
status)
nls 'Time zone is configured to %s' "$TIMEZONE"
- if ! identical "$ZONE_FILE" /etc/localtime; then
+ if [ ! -f "$ZONE_FILE" ]; then
+ nls "Missing %s file" "$ZONE_FILE"
+ elif ! identical "$ZONE_FILE" /etc/localtime; then
nls 'Current time zone differs from %s!' "$TIMEZONE"
fi
;;
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/tzdata/timezone.init?r1=1.18&r2=1.19&f=u
More information about the pld-cvs-commit
mailing list