summaryrefslogtreecommitdiffstats
path: root/convert/uniquify-modalias.pl
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-05-04 01:07:25 +0000
committerThierry Vignaud <tv@mageia.org>2012-05-04 01:07:25 +0000
commit47a3c86a9cda91ee0f79dc81dc7096483d14aa47 (patch)
treefa68ec72fac0fd623bfadaa178b68e9732d53b1f /convert/uniquify-modalias.pl
parent45246d84a7744b2525fdde55eaaa23e82d75997b (diff)
downloadldetect-lst-47a3c86a9cda91ee0f79dc81dc7096483d14aa47.tar
ldetect-lst-47a3c86a9cda91ee0f79dc81dc7096483d14aa47.tar.gz
ldetect-lst-47a3c86a9cda91ee0f79dc81dc7096483d14aa47.tar.bz2
ldetect-lst-47a3c86a9cda91ee0f79dc81dc7096483d14aa47.tar.xz
ldetect-lst-47a3c86a9cda91ee0f79dc81dc7096483d14aa47.zip
further simplify
Diffstat (limited to 'convert/uniquify-modalias.pl')
-rwxr-xr-xconvert/uniquify-modalias.pl5
1 files changed, 3 insertions, 2 deletions
diff --git a/convert/uniquify-modalias.pl b/convert/uniquify-modalias.pl
index c964f9a6..830a37d3 100755
--- a/convert/uniquify-modalias.pl
+++ b/convert/uniquify-modalias.pl
@@ -94,8 +94,9 @@ sub print_module {
@modules or return;
my @category_deferred_modules = map {
- @{$category_deferred_modules{$_} || []};
- } map { list_modules::module2category($_->[1]) } @modules;
+ my $l = list_modules::module2category($_->[1]);
+ @{$category_deferred_modules{$l} || []};
+ } @modules;
@modules > 1 || @category_deferred_modules or return;