diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-06-19 18:22:26 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-06-19 18:22:26 +0200 |
commit | bef469bae696e0d31144ca9e7a96d7c96e9262db (patch) | |
tree | 44f78db2c6ab17284e4e7ef6c0f227bd0437a581 | |
parent | 51e11c2096c969e16fcf06c804b09347ce039c5b (diff) |
apt-why: Use only one 'if' in the rdeps loop
-rwxr-xr-x | bin/apt-why | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/apt-why b/bin/apt-why index 2d200e8..54dc24b 100755 --- a/bin/apt-why +++ b/bin/apt-why @@ -33,10 +33,10 @@ sub revdeps { my $rdeps = $package->{RevDependsList}; foreach (@$rdeps) { if ( - ($all or $cache->{$_->{ParentPkg}{Name}}->{CurrentState} eq 'Installed') + not $_->{ParentPkg}{Name} ~~ @known + and ($all or $cache->{$_->{ParentPkg}{Name}}->{CurrentState} eq 'Installed') and "$_->{DepType}" ~~ @deptypes ) { - next if ($_->{ParentPkg}{Name} ~~ @known); push(@return, $_->{ParentPkg}{Name}); } } |