From 0088fa3977f63098f2264735c6a1ffb516195794 Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Sun, 29 Apr 2007 11:13:28 +0000 Subject: now we always call create_package with a valid archive. --- usr.sbin/pkg_add/pkg_create | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'usr.sbin/pkg_add/pkg_create') 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 # @@ -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(); } -- cgit v1.2.3