summaryrefslogtreecommitdiff
path: root/time-conf.in
diff options
context:
space:
mode:
authorhansp <hansp>2001-02-01 13:10:32 +0000
committerhansp <hansp>2001-02-01 13:10:32 +0000
commitb2a2cc51a49c7802f5d7a2ee2fa95a4184d82827 (patch)
treee5b9a8364e5cd92fdd4bf8bcc72a888e3a584f35 /time-conf.in
parent91cc3b63ec86c056e005c658136239c64aa6a3e4 (diff)
Progress wouldn't be written if the stat() pruning worked. Fixed.
Diffstat (limited to 'time-conf.in')
-rwxr-xr-xtime-conf.in12
1 files changed, 6 insertions, 6 deletions
diff --git a/time-conf.in b/time-conf.in
index 0853412..beac12a 100755
--- a/time-conf.in
+++ b/time-conf.in
@@ -386,7 +386,7 @@ sub get_zone
# a diff for every file, only for file with the correct size. This speeds
# up loading
$size_search = (stat("/etc/localtime"))[7];
-
+
while (<TZLIST>)
{
if (/#/) { next; } # Skip comments.
@@ -395,11 +395,12 @@ sub get_zone
# See if this zone file matches the installed one.
- &be_report_info(9, "Scanning timezones : $zone");
+ &be_report_info(9, "Scanning timezones: $zone");
+ &be_print_progress();
- $size_test = (stat("/usr/share/zoneinfo/$zone"))[7];
- if ($size_test eq $size_search)
- {
+ $size_test = (stat("/usr/share/zoneinfo/$zone"))[7];
+ if ($size_test eq $size_search)
+ {
if (!system "$diff_tool /usr/share/zoneinfo/$zone /etc/localtime >/dev/null 2>/dev/null")
{
# Found a match.
@@ -408,7 +409,6 @@ sub get_zone
}
$zone = "";
- &be_print_progress();
}
$cf_timezone = $zone;