summaryrefslogtreecommitdiffstats
path: root/perl-install/any.pm
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2003-09-23 13:03:56 +0000
committerFrancois Pons <fpons@mandriva.com>2003-09-23 13:03:56 +0000
commit226e94861dae548fe40285c1b317099a46b031fb (patch)
treea4aaf5b60f819f601a2f5d8f11cca3a2895581b6 /perl-install/any.pm
parent5143832333fe9d07aac11c4209b26f098e83b747 (diff)
downloaddrakx-backup-do-not-use-226e94861dae548fe40285c1b317099a46b031fb.tar
drakx-backup-do-not-use-226e94861dae548fe40285c1b317099a46b031fb.tar.gz
drakx-backup-do-not-use-226e94861dae548fe40285c1b317099a46b031fb.tar.bz2
drakx-backup-do-not-use-226e94861dae548fe40285c1b317099a46b031fb.tar.xz
drakx-backup-do-not-use-226e94861dae548fe40285c1b317099a46b031fb.zip
fixed hdInstallPath not working on some cases.
Diffstat (limited to 'perl-install/any.pm')
-rw-r--r--perl-install/any.pm4
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() {