diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2016-06-10 15:02:36 +0200 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2016-06-10 15:03:17 +0200 |
commit | a9c0192970448d616608629761186301d604149b (patch) | |
tree | 184ae29bb01f104b2222511b9437749fd54da6ed | |
parent | 10b753cec048ecb530c83fcab3d84063f84b5a80 (diff) | |
download | drakx-a9c0192970448d616608629761186301d604149b.tar drakx-a9c0192970448d616608629761186301d604149b.tar.gz drakx-a9c0192970448d616608629761186301d604149b.tar.bz2 drakx-a9c0192970448d616608629761186301d604149b.tar.xz drakx-a9c0192970448d616608629761186301d604149b.zip |
prevent listing modules more than once
-rwxr-xr-x | tools/find-drivers-needing-nonfree-firmware | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/find-drivers-needing-nonfree-firmware b/tools/find-drivers-needing-nonfree-firmware index 86fdf1667..e8068baee 100755 --- a/tools/find-drivers-needing-nonfree-firmware +++ b/tools/find-drivers-needing-nonfree-firmware @@ -51,7 +51,7 @@ warn Data::Dumper->Dump([ \%firmwares ], [ 'firmwares' ]) if $debug; # compute list of module that needs nonfree firmwares: my @non_free_fw_drivers; -foreach (@modules) { +foreach (uniq(@modules)) { my ($raw) = m!([^/]*)$!; my $cache = $cache{modinfo} . $raw; my @firmwares = cat_($cache); |