summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/pkg_create
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2007-04-29 11:13:28 +0000
committerMarc Espie <espie@cvs.openbsd.org>2007-04-29 11:13:28 +0000
commit0088fa3977f63098f2264735c6a1ffb516195794 (patch)
tree46fabd31f4570721bc0abb96dd2db117549dfae8 /usr.sbin/pkg_add/pkg_create
parentdff02556a90e5747e5b2cdbffae9fbff33114e23 (diff)
now we always call create_package with a valid archive.
Diffstat (limited to 'usr.sbin/pkg_add/pkg_create')
-rw-r--r--usr.sbin/pkg_add/pkg_create7
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.sbin/pkg_add/pkg_create b/usr.sbin/pkg_add/pkg_create
index c6a42d8d4d1..50865b0beb8 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.55 2007/04/29 11:12:07 espie Exp $
+# $OpenBSD: pkg_create,v 1.56 2007/04/29 11:13:27 espie Exp $
#
# Copyright (c) 2003-2007 Marc Espie <espie@openbsd.org>
#
@@ -35,9 +35,8 @@ package OpenBSD::PackingElement;
sub create_package
{
my ($self, $arc, $base, $verbose) = @_;
- if (defined $arc) {
- $self->archive($arc, $base);
- }
+
+ $self->archive($arc, $base);
if ($verbose) {
$self->comment_create_package();
}