diff options
author | Francois Pons <fpons@mandriva.com> | 2003-09-23 13:03:56 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2003-09-23 13:03:56 +0000 |
commit | 226e94861dae548fe40285c1b317099a46b031fb (patch) | |
tree | a4aaf5b60f819f601a2f5d8f11cca3a2895581b6 | |
parent | 5143832333fe9d07aac11c4209b26f098e83b747 (diff) | |
download | drakx-226e94861dae548fe40285c1b317099a46b031fb.tar drakx-226e94861dae548fe40285c1b317099a46b031fb.tar.gz drakx-226e94861dae548fe40285c1b317099a46b031fb.tar.bz2 drakx-226e94861dae548fe40285c1b317099a46b031fb.tar.xz drakx-226e94861dae548fe40285c1b317099a46b031fb.zip |
fixed hdInstallPath not working on some cases.
-rw-r--r-- | perl-install/any.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/any.pm b/perl-install/any.pm index 721fe7fcf..525ced9f5 100644 --- a/perl-install/any.pm +++ b/perl-install/any.pm @@ -72,9 +72,9 @@ sub enableShadow() { } sub hdInstallPath() { - my $tail = first(readlink("/tmp/image") =~ m|^/tmp/hdimage/(.*)|); + my $tail = first(readlink("/tmp/image") =~ m|^/tmp/hdimage/?(.*)|); my $head = first(readlink("/tmp/hdimage") =~ m|$::prefix(.*)|); - $tail && ($head ? "$head/$tail" : "/mnt/hd/$tail"); + defined $tail && ($head ? "$head/$tail" : "/mnt/hd/$tail"); } sub kernelVersion() { |