[Reproducible-commits] [dpkg] 15/40: Dpkg::Shlibs::SymbolFile: Use map instead of foreach to initialize the hash
Jérémy Bobbio
lunar at moszumanska.debian.org
Sat May 30 09:52:48 UTC 2015
This is an automated email from the git hooks/post-receive script.
lunar pushed a commit to branch pu/reproducible_builds
in repository dpkg.
commit 8e8c7b7fdefa0087ceb2e1ed304124f348f790a1
Author: Guillem Jover <guillem at debian.org>
Date: Fri May 22 07:58:47 2015 +0200
Dpkg::Shlibs::SymbolFile: Use map instead of foreach to initialize the hash
---
scripts/Dpkg/Shlibs/SymbolFile.pm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/Dpkg/Shlibs/SymbolFile.pm b/scripts/Dpkg/Shlibs/SymbolFile.pm
index c01292b..0b47ed2 100644
--- a/scripts/Dpkg/Shlibs/SymbolFile.pm
+++ b/scripts/Dpkg/Shlibs/SymbolFile.pm
@@ -112,8 +112,8 @@ sub clear {
sub clear_except {
my ($self, @ids) = @_;
- my %has;
- $has{$_} = 1 foreach (@ids);
+
+ my %has = map { $_ => 1 } @ids;
foreach my $objid (keys %{$self->{objects}}) {
delete $self->{objects}{$objid} unless exists $has{$objid};
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/dpkg.git
More information about the Reproducible-commits
mailing list