diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2002-09-09 11:20:09 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2002-09-09 11:20:09 +0000 |
commit | f020c0ea4b3b1cf6c7a83799b44d707173c18f81 (patch) | |
tree | 2150d4b6e667df3749f6526e2d19351b4384ffdd /perl-install/harddrake | |
parent | ed11c0d13e2d1a9cfe9f67158dc43a600178ed74 (diff) | |
download | drakx-backup-do-not-use-f020c0ea4b3b1cf6c7a83799b44d707173c18f81.tar drakx-backup-do-not-use-f020c0ea4b3b1cf6c7a83799b44d707173c18f81.tar.gz drakx-backup-do-not-use-f020c0ea4b3b1cf6c7a83799b44d707173c18f81.tar.bz2 drakx-backup-do-not-use-f020c0ea4b3b1cf6c7a83799b44d707173c18f81.tar.xz drakx-backup-do-not-use-f020c0ea4b3b1cf6c7a83799b44d707173c18f81.zip |
enforce unique ids
Diffstat (limited to 'perl-install/harddrake')
-rw-r--r-- | perl-install/harddrake/ui.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/perl-install/harddrake/ui.pm b/perl-install/harddrake/ui.pm index af1ed700b..a8165d3ad 100644 --- a/perl-install/harddrake/ui.pm +++ b/perl-install/harddrake/ui.pm @@ -212,6 +212,7 @@ sub new { foreach my $i (qw(vendor id subvendor subid pci_bus pci_device pci_function MOUSETYPE XMOUSETYPE unsafe val devfs_prefix wacom auxmouse)) { delete $_->{$i} } $_->{device} = '/dev/'.$_->{device} if exists $_->{device}; my $custom_id = harddrake::data::custom_id($_, $title); + $custom_id .= ' ' while exists($tree->{data}{$custom_id}); my $hw_item = $tree->insert_node($hw_class_tree, $prev_item, [$custom_id ], 5, (undef) x 4, 1, 0); $tree->set_row_data($hw_item, [data => $_, configurator => $configurator ]); $tree->{data}{$custom_id} = $_; |