summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2004-08-13 04:48:47 +0000
committerOlivier Blin <oblin@mandriva.org>2004-08-13 04:48:47 +0000
commitdf691ad0522e7851e689bd3287c6cf98960ec551 (patch)
tree28f0c17f37ddfae0aa0c1c301adcb3852c9a3591 /perl-install
parent9f3adf6c424e61cf33f373e46369b83143e75a78 (diff)
downloaddrakx-df691ad0522e7851e689bd3287c6cf98960ec551.tar
drakx-df691ad0522e7851e689bd3287c6cf98960ec551.tar.gz
drakx-df691ad0522e7851e689bd3287c6cf98960ec551.tar.bz2
drakx-df691ad0522e7851e689bd3287c6cf98960ec551.tar.xz
drakx-df691ad0522e7851e689bd3287c6cf98960ec551.zip
(device_name_to_entry) don't do brain twisted things
($e->{prefix} || $e->{device}) equals $prefix $prefix . $nb equals $name
Diffstat (limited to 'perl-install')
-rwxr-xr-xperl-install/standalone/drakupdate_fstab2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/standalone/drakupdate_fstab b/perl-install/standalone/drakupdate_fstab
index 8347bd68e..01c21e758 100755
--- a/perl-install/standalone/drakupdate_fstab
+++ b/perl-install/standalone/drakupdate_fstab
@@ -73,7 +73,7 @@ sub device_name_to_entry {
unless ($e = find { $name eq $_->{device} } @l) {
my ($prefix, $nb) = $name =~ m/^(.*?)(\d*)$/;
$e = find { $prefix eq ($_->{prefix} || $_->{device}) } @l;
- $e->{device} = ($e->{prefix} || $e->{device}) . $nb;
+ $e->{device} = $name;
}
}