From efd6faa5bd892361be66dcd0b27e229cb9324e2d Mon Sep 17 00:00:00 2001 From: espie Date: Tue, 16 May 2023 14:30:55 +0000 Subject: [PATCH] use the new set_destdir interface --- usr.sbin/pkg_add/OpenBSD/PkgCreate.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.sbin/pkg_add/OpenBSD/PkgCreate.pm b/usr.sbin/pkg_add/OpenBSD/PkgCreate.pm index 7767d31d77a..eb8d0ff23c4 100644 --- a/usr.sbin/pkg_add/OpenBSD/PkgCreate.pm +++ b/usr.sbin/pkg_add/OpenBSD/PkgCreate.pm @@ -1,6 +1,6 @@ #! /usr/bin/perl # ex:ts=8 sw=4: -# $OpenBSD: PkgCreate.pm,v 1.185 2023/01/25 13:25:07 espie Exp $ +# $OpenBSD: PkgCreate.pm,v 1.186 2023/05/16 14:30:55 espie Exp $ # # Copyright (c) 2003-2014 Marc Espie # @@ -434,7 +434,7 @@ sub set_destdir { my ($self, $state) = @_; if ($self->name =~ m/^\//) { - $state->{archive}->destdir($state->{base}); + $state->{archive}->set_destdir($state->{base}); } else { $self->SUPER::set_destdir($state); } @@ -585,7 +585,7 @@ sub set_destdir { my ($self, $state) = @_; - $state->{archive}->destdir($state->{base}."/".$self->cwd); + $state->{archive}->set_destdir($state->{base}."/".$self->cwd); } sub archive -- 2.20.1