summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-11-18 14:20:25 +0000
committerThierry Vignaud <tv@mandriva.org>2009-11-18 14:20:25 +0000
commit9b92cf5f07d0857931e601fe4f67a90803b09ca3 (patch)
tree99841a32ed0cc1cff290950a43fd0b7bbdd8ec81 /perl-install
parent3d244c6da8ee795cf9370db98d466f82cecfea02 (diff)
downloaddrakx-9b92cf5f07d0857931e601fe4f67a90803b09ca3.tar
drakx-9b92cf5f07d0857931e601fe4f67a90803b09ca3.tar.gz
drakx-9b92cf5f07d0857931e601fe4f67a90803b09ca3.tar.bz2
drakx-9b92cf5f07d0857931e601fe4f67a90803b09ca3.tar.xz
drakx-9b92cf5f07d0857931e601fe4f67a90803b09ca3.zip
(entry) fix handling hdX/sdX devices (#53107)
(backported from trunk)
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/NEWS2
-rw-r--r--perl-install/devices.pm2
2 files changed, 3 insertions, 1 deletions
diff --git a/perl-install/NEWS b/perl-install/NEWS
index c0f783244..afd265d49 100644
--- a/perl-install/NEWS
+++ b/perl-install/NEWS
@@ -1,5 +1,7 @@
- partitioning wizard:
o only display Help button in install
+- diskdrake:
+ o fix handling hdX/sdX devices (#53107)
- display_help: handle window.close() events (#55099)
Version 12.77 - 30 October 2009
diff --git a/perl-install/devices.pm b/perl-install/devices.pm
index 26c7599a0..6168973a8 100644
--- a/perl-install/devices.pm
+++ b/perl-install/devices.pm
@@ -158,7 +158,7 @@ sub entry {
} elsif (-e "/sys/block/$_/dev") {
$sysdev = "/sys/block/$_/dev";
$type = c::S_IFBLK();
- } elsif (/(.+)(\d+)$/ && -e "/sys/block/$1/$2/dev") {
+ } elsif (/^(.+)(\d+)$/ && -e "/sys/block/$1/$_/dev") {
$sysdev = "/sys/block/$_/dev";
$type = c::S_IFBLK();
}