From 16b4afce2c09e8658cc26ed449d31f63818e9fa7 Mon Sep 17 00:00:00 2001 From: espie Date: Sat, 27 May 2023 10:02:38 +0000 Subject: [PATCH] prepare for 5.36: pass $code as @code so that we don't have to decide a default right away (I should apply this everywhere I go to read a plist actually) --- usr.sbin/pkg_add/OpenBSD/PackageRepository.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.sbin/pkg_add/OpenBSD/PackageRepository.pm b/usr.sbin/pkg_add/OpenBSD/PackageRepository.pm index a43ac6df4e4..405d6abcb41 100644 --- a/usr.sbin/pkg_add/OpenBSD/PackageRepository.pm +++ b/usr.sbin/pkg_add/OpenBSD/PackageRepository.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: PackageRepository.pm,v 1.174 2023/05/20 09:30:57 espie Exp $ +# $OpenBSD: PackageRepository.pm,v 1.175 2023/05/27 10:02:38 espie Exp $ # # Copyright (c) 2003-2010 Marc Espie # @@ -272,10 +272,10 @@ sub find sub grabPlist { - my ($repository, $name, $code) = @_; + my ($repository, $name, @code) = @_; my $self = $repository->new_location($name); - return $self->grabPlist($code); + return $self->grabPlist(@code); } sub parse_problems -- 2.20.1