summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2010-01-03 19:55:36 +0000
committerMarc Espie <espie@cvs.openbsd.org>2010-01-03 19:55:36 +0000
commit7573f7b10da89c17e8fa93da812600c7f77a855c (patch)
tree1e4ff00c28c66eae8583c5978c16d6420addbe48 /usr.sbin/pkg_add/OpenBSD
parentc9e76d0011869dbf3b273f902c49f2c15b20553f (diff)
not a fatal error, keep going
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/Add.pm6
1 files changed, 4 insertions, 2 deletions
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 <espie@openbsd.org>
#
@@ -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