From e992959a50f9b3ef579c4a5d82c42d8c822145f3 Mon Sep 17 00:00:00 2001 From: espie Date: Tue, 28 Jun 2022 08:47:10 +0000 Subject: [PATCH] some old signing code was still around --- usr.sbin/pkg_add/OpenBSD/PkgCreate.pm | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/usr.sbin/pkg_add/OpenBSD/PkgCreate.pm b/usr.sbin/pkg_add/OpenBSD/PkgCreate.pm index afa5fb1cd89..b5f88fcec73 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.180 2022/06/06 08:18:22 espie Exp $ +# $OpenBSD: PkgCreate.pm,v 1.181 2022/06/28 08:47:10 espie Exp $ # # Copyright (c) 2003-2014 Marc Espie # @@ -1816,10 +1816,8 @@ sub parse_and_run if (@ARGV == 0) { $state->{regen_package} = 1; } elsif (@ARGV != 1) { - if (defined $state->{contents} || - !defined $state->{signature_params}) { - $state->usage("Exactly one single package name is required: #1", join(' ', @ARGV)); - } + $state->usage("Exactly one single package name is required: #1", + join(' ', @ARGV)); } $self->try_and_run_command($state); -- 2.20.1