diff options
author | Angelo Naselli <anaselli@linux.it> | 2015-02-15 12:45:58 +0100 |
---|---|---|
committer | Angelo Naselli <anaselli@linux.it> | 2015-02-15 12:45:58 +0100 |
commit | b26a69c7edbec529be9d325414e8cb47ca132182 (patch) | |
tree | 57cbdf38c5633bec19e059b803674e1cdaf966ff /perl-install/timezone.pm | |
parent | 46ce1e3284d595bd7be1ab41a79ecd67730553e4 (diff) | |
download | drakx-b26a69c7edbec529be9d325414e8cb47ca132182.tar drakx-b26a69c7edbec529be9d325414e8cb47ca132182.tar.gz drakx-b26a69c7edbec529be9d325414e8cb47ca132182.tar.bz2 drakx-b26a69c7edbec529be9d325414e8cb47ca132182.tar.xz drakx-b26a69c7edbec529be9d325414e8cb47ca132182.zip |
Revert "Fix timezone dir install prefix prepending (broken symlink during installer mga#14888)"
This reverts commit 46ce1e3284d595bd7be1ab41a79ecd67730553e4.
Diffstat (limited to 'perl-install/timezone.pm')
-rw-r--r-- | perl-install/timezone.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/perl-install/timezone.pm b/perl-install/timezone.pm index 4f72f4d58..ec252c603 100644 --- a/perl-install/timezone.pm +++ b/perl-install/timezone.pm @@ -7,11 +7,12 @@ use common; use log; sub get_timezone_prefix() { - "/usr/share/zoneinfo"; + my $prefix = $::testing ? '' : $::prefix; + $prefix . "/usr/share/zoneinfo"; } sub getTimeZones() { - my $tz_prefix = ($::testing ? '' : $::prefix) . get_timezone_prefix(); + my $tz_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"; |