summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-11-24 16:44:50 +0000
committerThierry Vignaud <tv@mandriva.org>2009-11-24 16:44:50 +0000
commit52f0e1cfd432bc74b499496ac182fc7e540fc9ce (patch)
tree88affdc7a6e79b4f2ff6e5622718e9390a6828f9 /perl-install/standalone
parentc1755fab0a585fd0fd7f84c38d8ccd395fdfcbba (diff)
downloaddrakx-52f0e1cfd432bc74b499496ac182fc7e540fc9ce.tar
drakx-52f0e1cfd432bc74b499496ac182fc7e540fc9ce.tar.gz
drakx-52f0e1cfd432bc74b499496ac182fc7e540fc9ce.tar.bz2
drakx-52f0e1cfd432bc74b499496ac182fc7e540fc9ce.tar.xz
drakx-52f0e1cfd432bc74b499496ac182fc7e540fc9ce.zip
(format_bus_ids) do not display bogus "0" ids for hard disks
(rationale: do not vivify ids)
Diffstat (limited to 'perl-install/standalone')
-rwxr-xr-xperl-install/standalone/harddrake22
1 files changed, 2 insertions, 0 deletions
diff --git a/perl-install/standalone/harddrake2 b/perl-install/standalone/harddrake2
index 02b0d08ce..97beec64b 100755
--- a/perl-install/standalone/harddrake2
+++ b/perl-install/standalone/harddrake2
@@ -491,6 +491,8 @@ undef $flush_guard;
sub format_bus_ids {
my ($device) = $_;
+ # do not vivify ids:
+ return if !($device->{vendor} && $device->{id});
foreach my $field (qw(vendor id subvendor subid)) {
next if !$device->{$field};
$device->{$field} = sprintf("0x%04x", $device->{$field});