summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2019-07-08 11:03:48 +0000
committerMarc Espie <espie@cvs.openbsd.org>2019-07-08 11:03:48 +0000
commitfe8b993f3eb8e349e9a45db04d969b665ee2489d (patch)
treeef1a418be205dba78b3fe1ecd6a8c54307de62ac /usr.sbin/pkg_add
parentb079f5d16d1059d264b1d889572ed635d29aa50e (diff)
actually use error, we can delay fatal problems
Diffstat (limited to 'usr.sbin/pkg_add')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PkgCreate.pm5
1 files changed, 3 insertions, 2 deletions
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 <espie@openbsd.org>
#
@@ -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);