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=45d0034f8600334ce95d634a556c795cca2d9830 commit 45d0034f8600334ce95d634a556c795cca2d9830 Author: Guillem Jover <[email protected]> AuthorDate: Wed Oct 1 05:46:29 2025 +0200 Dpkg::Shlibs: Assign from s///r instead of via topic variable We can use a substitution with returning result, instead of implicitly operating on the topic variable and then assigning that into the $libdir variable. --- scripts/Dpkg/Shlibs.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/Dpkg/Shlibs.pm b/scripts/Dpkg/Shlibs.pm index ba84fb846..5a1bf15d1 100644 --- a/scripts/Dpkg/Shlibs.pm +++ b/scripts/Dpkg/Shlibs.pm @@ -83,8 +83,7 @@ sub parse_ldso_conf { && ! $visited{$include}; } } elsif (m{^\s*/}) { - s/^\s+//; - my $libdir = $_; + my $libdir = s/^\s+//r; if (not exists $librarypath{$libdir}) { $librarypath{$libdir} = 1; push @system_librarypaths, $libdir; -- Dpkg.Org's dpkg

