summaryrefslogtreecommitdiffstats
path: root/urpm/signature.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-06-08 18:51:03 +0000
committerThierry Vignaud <tv@mageia.org>2012-06-08 18:51:03 +0000
commite156b1ce366fb2c05298731a3ba4ceb905e88738 (patch)
tree27605629ea67de4bd93b676f7a247ab72c9aa9f4 /urpm/signature.pm
parentb7e56b30b8c4801b1d4d4a47c71d92de0e7bc438 (diff)
downloadurpmi-e156b1ce366fb2c05298731a3ba4ceb905e88738.tar
urpmi-e156b1ce366fb2c05298731a3ba4ceb905e88738.tar.gz
urpmi-e156b1ce366fb2c05298731a3ba4ceb905e88738.tar.bz2
urpmi-e156b1ce366fb2c05298731a3ba4ceb905e88738.tar.xz
urpmi-e156b1ce366fb2c05298731a3ba4ceb905e88738.zip
use newly introduced any()
Diffstat (limited to 'urpm/signature.pm')
-rw-r--r--urpm/signature.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/urpm/signature.pm b/urpm/signature.pm
index 6272dfac..235867bf 100644
--- a/urpm/signature.pm
+++ b/urpm/signature.pm
@@ -53,7 +53,7 @@ sub _check {
my $invalid_ids = 0;
foreach my $key_id ($verif =~ /(?:key id \w{8}|#)(\w+)/gi) {
- if (grep { hex($_) == hex($key_id) } split /[,\s]+/, $key_ids) {
+ if (any { hex($_) == hex($key_id) } split /[,\s]+/, $key_ids) {
++$valid_ids;
} else {
++$invalid_ids;