diff options
author | Colin Guthrie <colin@mageia.org> | 2015-02-15 09:52:03 +0000 |
---|---|---|
committer | Colin Guthrie <colin@mageia.org> | 2015-02-15 09:52:42 +0000 |
commit | 46ce1e3284d595bd7be1ab41a79ecd67730553e4 (patch) | |
tree | 2958551356f26c246b637ca0933cbf59c63ee165 /perl-install/timezone.pm | |
parent | adae08ca607e4d08a091af7c1f8419df0b36aa67 (diff) | |
download | drakx-46ce1e3284d595bd7be1ab41a79ecd67730553e4.tar drakx-46ce1e3284d595bd7be1ab41a79ecd67730553e4.tar.gz drakx-46ce1e3284d595bd7be1ab41a79ecd67730553e4.tar.bz2 drakx-46ce1e3284d595bd7be1ab41a79ecd67730553e4.tar.xz drakx-46ce1e3284d595bd7be1ab41a79ecd67730553e4.zip |
Fix timezone dir install prefix prepending (broken symlink during installer mga#14888)
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"; |