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=3e6ab20d924f34f1ac0fcebd75dffbfd5684cf5a

commit 3e6ab20d924f34f1ac0fcebd75dffbfd5684cf5a (HEAD -> main)
Author: Guillem Jover <[email protected]>
AuthorDate: Mon Sep 8 00:45:22 2025 +0200

    dpkg-shlibdeps: Rename global $i to $depstrength
    
    If this was a scoped variable, that would be fine, but because it's
    global, it's a too generic name to use there.
    
    Changelog: internal
---
 scripts/dpkg-shlibdeps.pl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/dpkg-shlibdeps.pl b/scripts/dpkg-shlibdeps.pl
index d82862cfe..0c3274a21 100755
--- a/scripts/dpkg-shlibdeps.pl
+++ b/scripts/dpkg-shlibdeps.pl
@@ -60,8 +60,8 @@ my %warn2bits = (
 
 # By increasing importance.
 my @depfields = qw(Suggests Recommends Depends Pre-Depends);
-my $i = 0;
-my %depstrength = map { $_ => $i++ } @depfields;
+my $depstrength = 0;
+my %depstrength = map { $_ => $depstrength++ } @depfields;
 
 textdomain('dpkg-dev');
 

-- 
Dpkg.Org's dpkg

Reply via email to