diff options
Diffstat (limited to 'perl-install/timezone.pm')
-rw-r--r-- | perl-install/timezone.pm | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/perl-install/timezone.pm b/perl-install/timezone.pm index ec252c603..4f72f4d58 100644 --- a/perl-install/timezone.pm +++ b/perl-install/timezone.pm @@ -7,12 +7,11 @@ use common; use log; sub get_timezone_prefix() { - my $prefix = $::testing ? '' : $::prefix; - $prefix . "/usr/share/zoneinfo"; + "/usr/share/zoneinfo"; } sub getTimeZones() { - my $tz_prefix = get_timezone_prefix(); + my $tz_prefix = ($::testing ? '' : $::prefix) . get_timezone_prefix(); open(my $F, "cd $tz_prefix && find [A-Z]* -noleaf -type f |"); my @l = difference2([ chomp_(<$F>) ], [ 'ROC', 'PRC' ]); close $F or die "cannot list the available zoneinfos"; |