summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2023-05-16 14:30:56 +0000
committerMarc Espie <espie@cvs.openbsd.org>2023-05-16 14:30:56 +0000
commit452390a899ab53f15133837d4f81d6b09cfbd63e (patch)
treec0134abd47c3b2f590e7831c45ab553491673406 /usr.sbin
parenta520815abf154f7131afde5d844ab3efc8d69e56 (diff)
use the new set_destdir interface
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PkgCreate.pm6
1 files 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 <espie@openbsd.org>
#
@@ -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