diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2007-05-30 12:37:08 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2007-05-30 12:37:08 +0000 |
commit | 56c084c338d17c6fd1b01bc15ad242674a0b314f (patch) | |
tree | fe515c6d10a4176fc7d4c81978af539b526986d1 | |
parent | 3bf3f690338f9b5770df4adb44e2eb4a0381f120 (diff) |
use set_pkgname
-rw-r--r-- | usr.sbin/pkg_add/pkg_create | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/pkg_create b/usr.sbin/pkg_add/pkg_create index cb4272257a2..3626cfad8c3 100644 --- a/usr.sbin/pkg_add/pkg_create +++ b/usr.sbin/pkg_add/pkg_create @@ -1,6 +1,6 @@ #! /usr/bin/perl # ex:ts=8 sw=4: -# $OpenBSD: pkg_create,v 1.107 2007/05/29 15:38:41 espie Exp $ +# $OpenBSD: pkg_create,v 1.108 2007/05/30 12:37:07 espie Exp $ # # Copyright (c) 2003-2007 Marc Espie <espie@openbsd.org> # @@ -582,7 +582,7 @@ if ($regen_package) { if ($ARGV[0] =~ m|([^/]+)$|) { my $pkgname = $1; $pkgname =~ s/\.tgz$//; - OpenBSD::PackingElement::Name->add($plist, $pkgname); + $plist->set_pkgname($pkgname); } my $fullpkgpath = $defines{'FULLPKGPATH'}; my $cdrom = $defines{'PERMIT_PACKAGE_CDROM'}; |