From fe8b993f3eb8e349e9a45db04d969b665ee2489d Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Mon, 8 Jul 2019 11:03:48 +0000 Subject: actually use error, we can delay fatal problems --- usr.sbin/pkg_add/OpenBSD/PkgCreate.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'usr.sbin/pkg_add') diff --git a/usr.sbin/pkg_add/OpenBSD/PkgCreate.pm b/usr.sbin/pkg_add/OpenBSD/PkgCreate.pm index cc1197179c2..24e3c501ce1 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.156 2019/07/08 10:59:30 espie Exp $ +# $OpenBSD: PkgCreate.pm,v 1.157 2019/07/08 11:03:47 espie Exp $ # # Copyright (c) 2003-2014 Marc Espie # @@ -636,7 +636,8 @@ sub format_source_page my $d = dirname($fullname); $state->{mandir} //= OpenBSD::Temp::permanent_dir( $ENV{TMPDIR} // '/tmp', "manpage") or - $state->fatal(OpenBSD::Temp->last_error); + $state->error(OpenBSD::Temp->last_error) and + return 0; my $tempname = $state->{mandir}.$fullname; require File::Path; File::Path::make_path($state->{mandir}.$d); -- cgit v1.2.3