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=681685882504333f77b0b6c600f70709a4576a88

commit 681685882504333f77b0b6c600f70709a4576a88
Author: Guillem Jover <[email protected]>
AuthorDate: Sat Sep 13 17:57:08 2025 +0200

    dselect: Use an array variable instead of reusing @_ in method script
    
    Changelog: internal
---
 dselect/methods/media/install.sh | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/dselect/methods/media/install.sh b/dselect/methods/media/install.sh
index 96ce335c8..ea829894d 100755
--- a/dselect/methods/media/install.sh
+++ b/dselect/methods/media/install.sh
@@ -249,12 +249,13 @@ perl -MDpkg::Version -MDselect::Method::Media -e '
 
         my $ouch;
 
-       if (@_ = keys(%Medium)) {
+        my @media = sort keys %Medium;
+        if (@media) {
                    print "You will need the following distribution disc(s):\n",
-                       join (", ", @_), "\n";
+                          join(", ", @media), "\n";
        }
 
-       foreach my $need (sort @_) {
+       foreach my $need (@media) {
                 my $disk = get_disk_label($mountpoint, $hierbase);
 
                print "Processing disc\n   $need\n";

-- 
Dpkg.Org's dpkg

Reply via email to