From 7573f7b10da89c17e8fa93da812600c7f77a855c Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Sun, 3 Jan 2010 19:55:36 +0000 Subject: not a fatal error, keep going --- usr.sbin/pkg_add/OpenBSD/Add.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'usr.sbin') diff --git a/usr.sbin/pkg_add/OpenBSD/Add.pm b/usr.sbin/pkg_add/OpenBSD/Add.pm index da5cc21425e..283855b8edd 100644 --- a/usr.sbin/pkg_add/OpenBSD/Add.pm +++ b/usr.sbin/pkg_add/OpenBSD/Add.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: Add.pm,v 1.102 2010/01/02 12:59:45 espie Exp $ +# $OpenBSD: Add.pm,v 1.103 2010/01/03 19:55:35 espie Exp $ # # Copyright (c) 2003-2007 Marc Espie # @@ -480,7 +480,9 @@ sub prepare_for_addition { my ($self, $state, $pkgname) = @_; if (!defined $self->{copyfrom}) { - Fatal "\@sample element does not reference a valid file\n"; + $state->errsay("\@sample element ",$self->fullname, + " does not reference a valid file"); + $state->{problems}++; } my $fname = $state->{destdir}.$self->fullname; # If file already exists, we won't change it -- cgit v1.2.3