This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch main in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=96def9855e4204fc610d09b3919cd7c58f5d0487 commit 96def9855e4204fc610d09b3919cd7c58f5d0487 Author: Guillem Jover <[email protected]> AuthorDate: Mon Oct 3 03:32:02 2022 +0200 Dpkg::Vendor: Rename @tries variable to @names --- scripts/Dpkg/Vendor.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/Dpkg/Vendor.pm b/scripts/Dpkg/Vendor.pm index 196159156..85cf296c2 100644 --- a/scripts/Dpkg/Vendor.pm +++ b/scripts/Dpkg/Vendor.pm @@ -114,11 +114,11 @@ name. sub get_vendor_file(;$) { my $vendor = shift || 'default'; my $file; - my @tries = ($vendor, lc($vendor), ucfirst($vendor), ucfirst(lc($vendor))); + my @names = ($vendor, lc($vendor), ucfirst($vendor), ucfirst(lc($vendor))); if ($vendor =~ s/\s+/-/) { - push @tries, $vendor, lc($vendor), ucfirst($vendor), ucfirst(lc($vendor)); + push @names, $vendor, lc($vendor), ucfirst($vendor), ucfirst(lc($vendor)); } - foreach my $name (@tries) { + foreach my $name (@names) { $file = "$origins/$name" if -e "$origins/$name"; } return $file; -- Dpkg.Org's dpkg

