summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/pkg_create
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2007-05-30 12:37:08 +0000
committerMarc Espie <espie@cvs.openbsd.org>2007-05-30 12:37:08 +0000
commit56c084c338d17c6fd1b01bc15ad242674a0b314f (patch)
treefe515c6d10a4176fc7d4c81978af539b526986d1 /usr.sbin/pkg_add/pkg_create
parent3bf3f690338f9b5770df4adb44e2eb4a0381f120 (diff)
use set_pkgname
Diffstat (limited to 'usr.sbin/pkg_add/pkg_create')
-rw-r--r--usr.sbin/pkg_add/pkg_create4
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'};