diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2005-09-17 23:17:56 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2005-09-17 23:17:56 +0000 |
commit | 3322e7340edde4ecc2f1206b8fef7e836d98e80d (patch) | |
tree | c38ba67381a745a2bee4c9d3d42700ed49536797 /perl-install/harddrake/data.pm | |
parent | c63acf5f11efa9b74a8f87fea7ae548c55cb44bd (diff) | |
download | drakx-3322e7340edde4ecc2f1206b8fef7e836d98e80d.tar drakx-3322e7340edde4ecc2f1206b8fef7e836d98e80d.tar.gz drakx-3322e7340edde4ecc2f1206b8fef7e836d98e80d.tar.bz2 drakx-3322e7340edde4ecc2f1206b8fef7e836d98e80d.tar.xz drakx-3322e7340edde4ecc2f1206b8fef7e836d98e80d.zip |
(custom_id) try harder to have a sane name: before fallbacking to the
class name (eg: "Printer"), try to use the vendor name (eg for
printers)
Diffstat (limited to 'perl-install/harddrake/data.pm')
-rw-r--r-- | perl-install/harddrake/data.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/harddrake/data.pm b/perl-install/harddrake/data.pm index 13c5097c6..af99e1525 100644 --- a/perl-install/harddrake/data.pm +++ b/perl-install/harddrake/data.pm @@ -531,7 +531,8 @@ sub custom_id { $device->{"Socket Designation"} ? "$device->{name} (" . $device->{"Socket Designation"} . ")" : $device->{name} ? $device->{name} : - (defined($device->{description}) ? $device->{description} : $str)); + (defined($device->{description}) ? $device->{description} : + (defined($device->{Vendor}) ? $device->{Vendor} : $str))); } 1; |